Add governance endpoints #46
Open
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.
This pull request adds the new Cardano governance API endpoints and improves transaction-related test coverage by using temporary files for transaction submission and evaluation. The changes ensure the correctness of the governance API integration and enhance the reliability of transaction file handling in the test suite.
Cardano Governance API Testing
tests/test_cardano_governance.py
with extensive unit and integration tests for all Cardano governance-related API endpoints, including proposals, votes, DReps, and committee members.blockfrost/api/__init__.py
root import to include all governance-related API functions, ensuring their availability in the main API interface.Transaction File Handling in Tests
test_transaction_submit
intests/test_cardano_transactions.py
to use a temporary file containing valid transaction CBOR data instead of a static file path, improving test reliability and realism. [1] [2]test_utils_transaction_evaluate
intests/test_cardano_utils.py
to use a temporary file with valid transaction CBOR data for evaluating transactions, aligning with best practices for file-based operations in tests.tx_cbor
transaction string totests/test_cardano_utils.py
for use in transaction-related tests.