Fix relay URL handling for nostr-sdk 0.43

This commit is contained in:
thePR0M3TH3AN
2025-07-28 13:55:55 -04:00
parent 2d39d7a5bd
commit a3d45a117c
2 changed files with 18 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ def test_initialize_client_pool_add_relays_used(tmp_path):
client = _setup_client(tmp_path, FakeAddRelaysClient)
fc = client.client
client.connect()
assert fc.added == [client.relays]
assert [[str(r) for r in relays] for relays in fc.added] == [client.relays]
assert fc.connected is True
@@ -99,7 +99,7 @@ def test_initialize_client_pool_add_relay_fallback(tmp_path):
client = _setup_client(tmp_path, FakeAddRelayClient)
fc = client.client
client.connect()
assert fc.added == client.relays
assert [str(r) for r in fc.added] == client.relays
assert fc.connected is True