mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Use unique fingerprints for Nostr network tests
This commit is contained in:
@@ -4,6 +4,7 @@ from pathlib import Path
|
|||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
import sys
|
import sys
|
||||||
|
import uuid
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@@ -32,7 +33,7 @@ def test_nostr_index_size_limits():
|
|||||||
with patch.object(enc_mgr, "decrypt_parent_seed", return_value=seed):
|
with patch.object(enc_mgr, "decrypt_parent_seed", return_value=seed):
|
||||||
client = NostrClient(
|
client = NostrClient(
|
||||||
enc_mgr,
|
enc_mgr,
|
||||||
"size_test_fp",
|
f"size_test_{uuid.uuid4().hex}",
|
||||||
relays=["wss://relay.snort.social"],
|
relays=["wss://relay.snort.social"],
|
||||||
)
|
)
|
||||||
npub = client.key_manager.get_npub()
|
npub = client.key_manager.get_npub()
|
||||||
|
@@ -4,6 +4,7 @@ import time
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
import uuid
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from cryptography.fernet import Fernet
|
from cryptography.fernet import Fernet
|
||||||
@@ -26,7 +27,7 @@ def test_nostr_publish_and_retrieve():
|
|||||||
with patch.object(enc_mgr, "decrypt_parent_seed", return_value=seed):
|
with patch.object(enc_mgr, "decrypt_parent_seed", return_value=seed):
|
||||||
client = NostrClient(
|
client = NostrClient(
|
||||||
enc_mgr,
|
enc_mgr,
|
||||||
"test_fp_real",
|
f"test_fp_{uuid.uuid4().hex}",
|
||||||
relays=["wss://relay.snort.social"],
|
relays=["wss://relay.snort.social"],
|
||||||
)
|
)
|
||||||
payload = b"seedpass"
|
payload = b"seedpass"
|
||||||
|
Reference in New Issue
Block a user