Update watch_test.py

As per request added few empty lines to test case in watch_test.py
This commit is contained in:
Raj Bhargav 2025-03-20 11:23:23 +05:30 committed by GitHub
parent f4d0842d0e
commit d451d2fc7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -540,9 +540,12 @@ class WatchTests(unittest.TestCase):
#Mock logs used for this test
w.stream = Mock(return_value=[
"Hello from Docker",
"", # Empty line
"",
"",
"\n\n",
"Another log line",
"", # Another empty line
"",
"\n",
"Final log"
])
for event in w.stream(self.api.read_namespaced_pod_log, name=pod_name, namespace=self.namespace, follow=True):
@ -556,8 +559,11 @@ class WatchTests(unittest.TestCase):
expected_log = [
"Hello from Docker",
"",
"",
"\n\n",
"Another log line",
"",
"\n",
"Final log"
]