Skip to content

Commit d451d2f

Browse files
authored
Update watch_test.py
As per request added few empty lines to test case in watch_test.py
1 parent f4d0842 commit d451d2f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

kubernetes/base/watch/watch_test.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,12 @@ def test_pod_log_empty_lines(self):
540540
#Mock logs used for this test
541541
w.stream = Mock(return_value=[
542542
"Hello from Docker",
543-
"", # Empty line
543+
"",
544+
"",
545+
"\n\n",
544546
"Another log line",
545-
"", # Another empty line
547+
"",
548+
"\n",
546549
"Final log"
547550
])
548551
for event in w.stream(self.api.read_namespaced_pod_log, name=pod_name, namespace=self.namespace, follow=True):
@@ -556,8 +559,11 @@ def test_pod_log_empty_lines(self):
556559
expected_log = [
557560
"Hello from Docker",
558561
"",
562+
"",
563+
"\n\n",
559564
"Another log line",
560565
"",
566+
"\n",
561567
"Final log"
562568
]
563569

0 commit comments

Comments
 (0)