Update watch_test.py
As per request added few empty lines to test case in watch_test.py
This commit is contained in:
parent
f4d0842d0e
commit
d451d2fc7a
@ -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"
|
||||
]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user