Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danceratopz
Copy link
Member

@danceratopz danceratopz commented Apr 16, 2025

🗒️ Description

This PR adds a FixtureOutput dataclass to filler.py in order to encapsulate fiil'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

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.

@danceratopz danceratopz added type:refactor Type: Refactor scope:fill Scope: fill command labels Apr 16, 2025
@danceratopz
Copy link
Member Author

danceratopz commented Apr 17, 2025

Looks like this is not safe with pytest-xdist, see:
https://github.com/ethereum/execution-spec-tests/actions/runs/14504935803/job/40692463739

Will take another look.

@danceratopz
Copy link
Member Author

Looks like this is not safe with pytest-xdist, see: https://github.com/ethereum/execution-spec-tests/actions/runs/14504935803/job/40692463739

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.

@danceratopz danceratopz marked this pull request as ready for review April 17, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:fill Scope: fill command type:refactor Type: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant