Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd451d2f

Browse files
authored
Update watch_test.py
As per request added few empty lines to test case in watch_test.py
1 parentf4d0842 commitd451d2f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎kubernetes/base/watch/watch_test.py

Lines changed: 8 additions & 2 deletions
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
foreventinw.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)

[8]ページ先頭

©2009-2025 Movatter.jp