Skip to content

Conversation

KINGH242
Copy link

@KINGH242 KINGH242 commented Aug 4, 2025

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

  • Added a new test suite 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.
  • Updated the 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

  • Updated test_transaction_submit in tests/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]
  • Updated test_utils_transaction_evaluate in tests/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.
  • Added a sample tx_cbor transaction string to tests/test_cardano_utils.py for use in transaction-related tests.

@KINGH242
Copy link
Author

KINGH242 commented Aug 4, 2025

This fixes #45

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