kopia lustrzana https://github.com/Yakifo/amqtt
fixing warning
rodzic
895672731f
commit
b90b53e755
|
@ -30,7 +30,6 @@ def rsa_keys():
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def test_config(rsa_keys):
|
def test_config(rsa_keys):
|
||||||
certfile, keyfile = rsa_keys
|
certfile, keyfile = rsa_keys
|
||||||
with pytest.warns(DeprecationWarning):
|
|
||||||
yield {
|
yield {
|
||||||
"listeners": {
|
"listeners": {
|
||||||
"default": {"type": "tcp", "bind": "127.0.0.1:1883", "max_connections": 15},
|
"default": {"type": "tcp", "bind": "127.0.0.1:1883", "max_connections": 15},
|
||||||
|
@ -94,6 +93,7 @@ def mock_plugin_manager():
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
async def broker_fixture(test_config):
|
async def broker_fixture(test_config):
|
||||||
|
with pytest.warns(DeprecationWarning):
|
||||||
broker = Broker(test_config, plugin_namespace="amqtt.test.plugins")
|
broker = Broker(test_config, plugin_namespace="amqtt.test.plugins")
|
||||||
await broker.start()
|
await broker.start()
|
||||||
assert broker.transitions.is_started()
|
assert broker.transitions.is_started()
|
||||||
|
|
Ładowanie…
Reference in New Issue