Skip to content

Commit a569776

Browse files
committed
Fixed the watch_test.py indentation error:
./kubernetes/base/watch/watch_test.py:580:2: E999 IndentationError: expected an indented block after 'if' statement on line 579 def test_watch_with_deserialize_param(self): ^ 1 E999 IndentationError: expected an indented block after 'if' statement on line 579
1 parent c330b84 commit a569776

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kubernetes/base/watch/watch_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import os
1818

19+
import json
20+
1921
import time
2022

2123
from unittest.mock import Mock, call
@@ -576,7 +578,6 @@ def test_pod_log_empty_lines(self):
576578
self.api.delete_namespaced_pod(name=pod_name, namespace=self.namespace)
577579
self.api.delete_namespaced_pod.assert_called_once_with(name=pod_name, namespace=self.namespace)
578580

579-
if __name__ == '__main__':
580581
def test_watch_with_deserialize_param(self):
581582
"""test watch.stream() deserialize param"""
582583
# prepare test data
@@ -615,5 +616,7 @@ def test_watch_with_deserialize_param(self):
615616
call(_preload_content=False, watch=True),
616617
call(_preload_content=False, watch=True)
617618
])
619+
620+
618621
if __name__ == '__main__':
619622
unittest.main()

0 commit comments

Comments
 (0)