mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Switch to nostr-sdk
This commit is contained in:
@@ -16,11 +16,11 @@ def test_nostr_client_uses_custom_relays():
|
||||
enc_mgr = EncryptionManager(key, Path(tmpdir))
|
||||
custom_relays = ["wss://relay1", "wss://relay2"]
|
||||
|
||||
with patch("nostr.client.WebSocketRelayManager") as MockPool, patch(
|
||||
with patch("nostr.client.ClientBuilder") as MockBuilder, patch(
|
||||
"nostr.client.KeyManager"
|
||||
):
|
||||
), patch.object(NostrClient, "initialize_client_pool"):
|
||||
mock_builder = MockBuilder.return_value
|
||||
with patch.object(enc_mgr, "decrypt_parent_seed", return_value="seed"):
|
||||
client = NostrClient(enc_mgr, "fp", relays=custom_relays)
|
||||
|
||||
MockPool.assert_called_with()
|
||||
assert client.relays == custom_relays
|
||||
|
Reference in New Issue
Block a user