Use unique fingerprints for Nostr network tests

This commit is contained in:
thePR0M3TH3AN
2025-07-02 15:13:32 -04:00
parent 2cfecdc472
commit 52f5ce7f17
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import patch
import sys
import uuid
import pytest
@@ -32,7 +33,7 @@ def test_nostr_index_size_limits():
with patch.object(enc_mgr, "decrypt_parent_seed", return_value=seed):
client = NostrClient(
enc_mgr,
"size_test_fp",
f"size_test_{uuid.uuid4().hex}",
relays=["wss://relay.snort.social"],
)
npub = client.key_manager.get_npub()

View File

@@ -4,6 +4,7 @@ import time
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import patch
import uuid
import pytest
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):
client = NostrClient(
enc_mgr,
"test_fp_real",
f"test_fp_{uuid.uuid4().hex}",
relays=["wss://relay.snort.social"],
)
payload = b"seedpass"