karenbraganz commented on code in PR #65498:
URL: https://github.com/apache/airflow/pull/65498#discussion_r3119671256


##########
providers/cncf/kubernetes/tests/unit/cncf/kubernetes/operators/test_pod.py:
##########
@@ -2947,6 +2947,21 @@ def 
test_write_logs_with_invalid_since_time_falls_back_to_none(self, mocked_clie
             "not-a-datetime",
         )
 
+    @time_machine.travel("2026-01-01 00:00:00", tick=False)
+    @patch(KUB_OP_PATH.format("client"))
+    def test_write_logs_with_string_since_time_converts_to_datetime(self, 
mocked_client):
+        """Test that a valid ISO string since_time is converted to datetime 
and since_seconds is calculated."""
+        pod = k8s.V1Pod(metadata=k8s.V1ObjectMeta(name=TEST_NAME, 
namespace=TEST_NAMESPACE))
+        k = KubernetesPodOperator(task_id="task", get_logs=True)
+
+        since_time = "2025-12-31T23:59:30Z"
+        k = KubernetesPodOperator(task_id="task", get_logs=True)
+        with patch.object(k.log, "warning") as mock_warning:

Review Comment:
   Changed in the latest commit.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to