Skip to content
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

CLI arguments --fixture-graph-output-type and --fixture-graph-output-dir broken #6

Open
lukasjuhrich opened this issue Oct 4, 2022 · 0 comments

Comments

@lukasjuhrich
Copy link

Bug

When running pytest --fixture-graph --fixture-graph-output-type=svg tests, I get the following output:

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: argument --fixture-graph-output-type: ignored explicit argument 'svg'

Reason

Both arguments are implemented as boolean flags due to being marked as action="store_true":

group.addoption('--fixture-graph-output-dir',
action="store_true", dest="fixture_graph_output_dir", default="artifacts",
help="select the location for the output of fixture graph. defaults to 'artifacts'")
group.addoption('--fixture-graph-output-type',
action="store_true", dest="fixture_graph_output_type", default="png",
help="select the type of the output for the fixture graph. defaults to 'png'")

That should be omitted.
Introduced in a232b7c.

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

No branches or pull requests

1 participant