We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71c0c6 commit caf236eCopy full SHA for caf236e
src/frequenz/client/dispatch/test/client.py
@@ -4,8 +4,7 @@
4
"""Fake client for testing."""
5
6
from typing import Any, cast
7
-
8
-import grpc.aio
+from unittest.mock import MagicMock
9
10
from frequenz.client.dispatch import Client
11
from frequenz.client.dispatch.test._service import FakeService
@@ -20,7 +19,7 @@ class FakeClient(Client):
20
19
21
def __init__(self) -> None:
22
"""Initialize the mock client."""
23
- super().__init__(grpc.aio.insecure_channel("mock"), "mock")
+ super().__init__(MagicMock(), "mock")
24
self._stub = FakeService() # type: ignore
25
26
@property
0 commit comments