nostrclient/tests
Padreug 7e7120fa82 feat: answer REQ with CLOSED when no relay is configured
Ported from the upstream PR (lnbits/nostrclient#74, idea from #68).
Nothing will ever serve a subscription when nostrclient has no relay
at all, so refuse it per NIP-01 instead of registering it silently.
Keyed on "no relay configured" rather than "none connected": a
configured relay that is merely reconnecting gets the cached
subscription replayed, so refusing the REQ there would be a regression.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tbyw6FwjhEJg3gHfPHxWt
2026-09-13 16:07:37 +02:00
..
__init__.py feat: code quality (#31) 2024-08-30 13:07:33 +02:00
test_init.py feat: code quality (#31) 2024-08-30 13:07:33 +02:00
test_router_ok.py feat: answer REQ with CLOSED when no relay is configured 2026-09-13 16:07:37 +02:00