Skip to content

Commit e94adcb

Browse files
committed
fixed watch.stream bug of not working with apis with follow kwarg
1 parent 65ce783 commit e94adcb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kubernetes_asyncio/watch/watch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from kubernetes_asyncio import client
2222

2323
PYDOC_RETURN_LABEL = ":rtype:"
24-
PYDOC_FOLLOW_PARAM = ":param bool follow:"
24+
PYDOC_FOLLOW_PARAM = ":param follow:"
2525

2626
# Removing this suffix from return type name should give us event's object
2727
# type. e.g., if list_namespaces() returns "NamespaceList" type,

kubernetes_asyncio/watch/watch_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def test_watch_for_follow(self):
8181

8282
fake_api = Mock()
8383
fake_api.read_namespaced_pod_log = CoroutineMock(return_value=fake_resp)
84-
fake_api.read_namespaced_pod_log.__doc__ = ':param bool follow:\n:rtype: str'
84+
fake_api.read_namespaced_pod_log.__doc__ = ':param follow:\n:type follow: bool\n:rtype: str'
8585

8686
watch = kubernetes_asyncio.watch.Watch()
8787
count = 1

0 commit comments

Comments
 (0)