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 f95e7bb commit caa40c8Copy full SHA for caa40c8
test/test_client_async.py
@@ -25,13 +25,15 @@
25
@pytest.fixture
26
def cli(mocker, conn):
27
client = KafkaClient(api_version=(0, 9))
28
+ mocker.patch.object(client, '_selector')
29
client.poll(future=client.cluster.request_update())
30
return client
31
32
33
def test_bootstrap(mocker, conn):
34
conn.state = ConnectionStates.CONNECTED
35
cli = KafkaClient(api_version=(0, 9))
36
+ mocker.patch.object(cli, '_selector')
37
future = cli.cluster.request_update()
38
cli.poll(future=future)
39
@@ -86,7 +88,7 @@ def test_maybe_connect(cli, conn):
86
88
87
89
90
def test_conn_state_change(mocker, cli, conn):
- sel = mocker.patch.object(cli, '_selector')
91
+ sel = cli._selector
92
93
node_id = 0
94
cli._conns[node_id] = conn
0 commit comments