adding test case for issue 67

pull/201/head
Andrew Mirsky 2025-06-08 00:06:17 -04:00
rodzic 80016d8cca
commit 58d431f2f5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A98E67635CDF2C39
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -295,3 +295,10 @@ async def test_client_publish_will_with_retain(broker_fixture, client_config):
assert message3.topic == 'test/will/topic'
assert message3.data == b'client ABC has disconnected'
await client3.disconnect()
@pytest.mark.asyncio
async def test_connect_broken_uri():
config = {"auto_reconnect": False}
client = MQTTClient(config=config)
await client.connect('"mqtt://someplace')