From d451d2fc7ae8a51dfa9c39ee48f05f3903d4c218 Mon Sep 17 00:00:00 2001 From: Raj Bhargav <72274012+p172913@users.noreply.github.com> Date: Thu, 20 Mar 2025 11:23:23 +0530 Subject: [PATCH] Update watch_test.py As per request added few empty lines to test case in watch_test.py --- kubernetes/base/watch/watch_test.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kubernetes/base/watch/watch_test.py b/kubernetes/base/watch/watch_test.py index 64378e931..f3880de7c 100644 --- a/kubernetes/base/watch/watch_test.py +++ b/kubernetes/base/watch/watch_test.py @@ -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" ]