Skip to content

Extend Electrum acceptance tests#801

Open
eynhaender wants to merge 5 commits into
libbitcoin:masterfrom
eynhaender:test/extending_acceptance_tests
Open

Extend Electrum acceptance tests#801
eynhaender wants to merge 5 commits into
libbitcoin:masterfrom
eynhaender:test/extending_acceptance_tests

Conversation

@eynhaender

Copy link
Copy Markdown
Contributor

Extends the Electrum protocol test suite and adds push-notification tests.

  • Replace simple global socket in test_electrum.py with a session fixture
    that performs the version handshake and stores the negotiated protocol
    version; add version-conditional assertions (response shape differs across
    v1.0–v1.6); expand test coverage across all major method categories.

  • Add test_electrum_subscriptions.py for blockchain.headers.subscribe
    and blockchain.scripthash.subscribe; each test opens its own connection
    and waits up to --subscription-timeout seconds for a push notification
    before skipping.

  • Add --electrum-protocol and --subscription-timeout CLI options;
    add session header showing host, port, and offered protocol version.

  • Extend README with Electrum protocol version matrix (v1.0–v1.6, 30+
    methods), version-conditional assertion table, and known deviations
    from spec (four intentional xfails).

Add pytest_report_header showing host, port, and offered protocol version.
Extend electrum_config fixture to parse the protocol range (min:max) and
expose subscription_timeout.
Tests for blockchain.headers.subscribe and blockchain.scripthash.subscribe.
Each test opens its own connection, subscribes, and waits up to
--subscription-timeout seconds for a notification before skipping.
Documents method support across v1.0-v1.6 (30+ methods), version-conditional
assertion table, and known deviations from spec with the four intentional xfails.
Replace simple global socket with a session fixture that performs the version
handshake and stores the negotiated protocol version. Add version-conditional
assertions (response shape differs across v1.0-v1.6). Expand test coverage
across all major method categories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant