test: add TestResources for 7 MCP resources (closes #7)#27
Closed
ThomsenDrake wants to merge 2 commits intoBortlesboat:mainfrom
Closed
test: add TestResources for 7 MCP resources (closes #7)#27ThomsenDrake wants to merge 2 commits intoBortlesboat:mainfrom
ThomsenDrake wants to merge 2 commits intoBortlesboat:mainfrom
Conversation
added 2 commits
April 11, 2026 23:31
Add 7 tests covering all zero-coverage MCP resources: - test_resource_script_opcodes (static, validates opcode structure) - test_resource_address_types (static, validates address type list) - test_resource_sighash_types (static, validates sighash type list) - test_resource_connection_status (dynamic, uses mock_rpc) - test_resource_node_status (dynamic, uses mock_rpc) - test_resource_current_fees (dynamic, uses mock_rpc) - test_resource_mempool_snapshot (dynamic, uses mock_rpc) Static resources validate returned JSON structure. Dynamic resources use the mock_rpc fixture (conftest.py). All 131 tests pass (124 existing + 7 new).
Owner
|
Closing this as superseded by #31, which consolidates the open backlog work into one maintainer sweep. Thank you for the contribution and the concrete issue coverage here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
TestResourcesclass with 7 tests covering all zero-coverage MCP resources from issue #7:test_resource_script_opcodesbitcoin://protocol/script-opcodestest_resource_address_typesbitcoin://protocol/address-typestest_resource_sighash_typesbitcoin://protocol/sighash-typestest_resource_connection_statusbitcoin://connection/statustest_resource_node_statusbitcoin://node/statustest_resource_current_feesbitcoin://fees/currenttest_resource_mempool_snapshotbitcoin://mempool/snapshotApproach
mock_rpcfixture which already mocks all required RPC callsTest results
All 131 tests pass (124 existing + 7 new):