-
Notifications
You must be signed in to change notification settings - Fork 174
refactor(fill): encapsulate fixture output options in FixtureOutput
class
#1471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Looks like this is not safe with pytest-xdist, see: Will take another look. |
This PR shouldn't have an issue with pytest-xdist, as it doesn't change the output directory behavior. It is and issue for #1473 though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments.
6d5a92c
to
9e9c26d
Compare
Does anyone use --flat-output? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
… class (ethereum#1471) * refactor(fill): encapsulate fixture output ops in `FixtureOutput` class * docs: update changelog * refactor(fill): convert `FixtureOutput` to pydantic model * refactor(fill): move `FixtureOutput` class to its own moudule * test(fill): fix unit test * docs: Move changelog * fix: changelog --------- Co-authored-by: Mario Vega <[email protected]>
🗒️ Description
This PR adds a
FixtureOutput
class (which inherits from pydanticBaseModel
) tofiller.py
in order to encapsulatefiil
's fixture JSON output-related settings. It's instantiated from the values of the command-line arguments that modify JSON output:--output
,--flat-output
,--single-fixture-per-file
.🔗 Related Issues
Refactoring in preparation of:
✅ Checklist