test descriptions
This commit is contained in:
@@ -85,6 +85,7 @@ def _wait_for(predicate, timeout=3.0):
|
||||
|
||||
|
||||
def test_wallet_register_requires_auth(watched_tracker):
|
||||
"Wallet register requires auth\n\nTags: auth, security, wallet"
|
||||
tracker_url, _, _ = watched_tracker
|
||||
with pytest.raises(urllib.error.HTTPError) as exc_info:
|
||||
_post_json(f"{tracker_url}/v1/wallet/register", {"wallet": "So1anaWa11et111"})
|
||||
@@ -92,6 +93,7 @@ def test_wallet_register_requires_auth(watched_tracker):
|
||||
|
||||
|
||||
def test_deposit_credits_bound_api_key_exactly_once(watched_tracker):
|
||||
"Deposit credits bound api key exactly once\n\nTags: general"
|
||||
tracker_url, ledger, treasury = watched_tracker
|
||||
priv, wallet = _keypair()
|
||||
reply = _post_json(
|
||||
@@ -114,6 +116,7 @@ def test_deposit_credits_bound_api_key_exactly_once(watched_tracker):
|
||||
|
||||
|
||||
def test_unbound_wallet_deposit_is_not_credited(watched_tracker):
|
||||
"Unbound wallet deposit is not credited\n\nTags: security, wallet"
|
||||
_, ledger, treasury = watched_tracker
|
||||
treasury.deposits.append(_FakeDeposit("sig-2", "UnknownWallet999", 10.0))
|
||||
time.sleep(0.4)
|
||||
@@ -121,6 +124,7 @@ def test_unbound_wallet_deposit_is_not_credited(watched_tracker):
|
||||
|
||||
|
||||
def test_binding_replicates_via_events():
|
||||
"Binding replicates via events\n\nTags: general"
|
||||
a = BillingLedger(starting_credit=0.0)
|
||||
b = BillingLedger(starting_credit=0.0)
|
||||
a.bind_wallet("key-9", "WalletNine")
|
||||
@@ -134,7 +138,7 @@ def test_binding_replicates_via_events():
|
||||
|
||||
|
||||
def test_solana_adapter_derives_treasury_accounts():
|
||||
"""Adapter smoke test without any RPC round-trip."""
|
||||
"Adapter smoke test without any RPC round-trip.\n\nTags: general"
|
||||
pytest.importorskip("solders")
|
||||
token_instructions = pytest.importorskip("spl.token.instructions")
|
||||
if not hasattr(token_instructions, "InitializeMintParams"):
|
||||
@@ -158,7 +162,7 @@ def test_solana_adapter_derives_treasury_accounts():
|
||||
reason="solana-test-validator not installed",
|
||||
)
|
||||
def test_mint_deposit_credit_flow_against_local_validator(tmp_path):
|
||||
"""Full mint → deposit → credit flow on a local validator (US-032)."""
|
||||
"Full mint → deposit → credit flow on a local validator (US-032).\n\nTags: general"
|
||||
import subprocess
|
||||
|
||||
from solders.keypair import Keypair
|
||||
|
||||
Reference in New Issue
Block a user