Skip to content

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented Jan 14, 2026

Fixed the test to not use an in bounds Lovelace amount as an hypothesis example.

Refactored the test for out-of-bounds Lovelace amounts to use pytest.raises for exception handling instead of try/except. Updated parameter names for clarity and removed redundant error string logic.

Fixed the test to not use an in bounds Lovelace amount as an hypothesis example.

Refactored the test for out-of-bounds Lovelace amounts to use
pytest.raises for exception handling instead of try/except. Updated
parameter names for clarity and removed redundant error string logic.
@mkoura mkoura requested a review from saratomaz as a code owner January 14, 2026 10:50
@mkoura mkoura requested a review from Copilot January 14, 2026 10:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors a property-based test for out-of-bounds Lovelace amounts in transaction building. The changes improve test clarity by removing an invalid hypothesis example and modernizing exception handling.

Changes:

  • Removed the @hypothesis.example(change_amount=2_000_000) decorator which incorrectly used an in-bounds value
  • Refactored exception handling from try/except to pytest.raises context manager
  • Renamed parameter from change_amount to amount for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mkoura mkoura merged commit 5e187fc into master Jan 14, 2026
3 checks passed
@mkoura mkoura deleted the fix_test_out_of_bounds_amount branch January 14, 2026 11:46
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.

2 participants