Skip to content

Conversation

danceratopz
Copy link
Member

🗒️ Description

Remove the run_post_state_mismatch_test helper function and re-write using fixtures. Having an if to handle the exception/no-exception cases both in the helper function and the tests themselves made the tests harder to understand.

🔗 Related Issues

PR to #350.

✅ Checklist

Checklist handled in #350.

The functionality from ethereum_test.filler.fill_test() got moved to the StateTest, respectively BlockchainTest, generate() method.
@danceratopz danceratopz changed the title refactor: make tests post state verification tests more pytesty refactor: make post state verification tests more pytesty Jan 19, 2024
Copy link
Collaborator

@spencer-tb spencer-tb left a comment

Choose a reason for hiding this comment

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

Nice!! LGTM

@spencer-tb spencer-tb merged commit 0a22c6b into ethereum:unit_tests Jan 20, 2024
spencer-tb pushed a commit that referenced this pull request Jan 20, 2024
* refactor: use pytest fixtures as apposed to helper function

* refactor: update comments due to state test fixtures #356

The functionality from ethereum_test.filler.fill_test() got moved to the StateTest, respectively BlockchainTest, generate() method.
spencer-tb added a commit that referenced this pull request Jan 20, 2024
* test(fw): Unit tests for post state verification.

* docs: Add changelog entry.

* refactor: make post state verification tests more pytesty (#393)

* refactor: use pytest fixtures as apposed to helper function

* refactor: update comments due to state test fixtures #356

The functionality from ethereum_test.filler.fill_test() got moved to the StateTest, respectively BlockchainTest, generate() method.

---------

Co-authored-by: spencer-tb <[email protected]>
Co-authored-by: danceratopz <[email protected]>
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