pytest-fixture-tools icon indicating copy to clipboard operation
pytest-fixture-tools copied to clipboard

Fix --fixture-graph-output-dir and --fixture-graph-output-type

Open youtux opened this issue 5 years ago • 0 comments

Command line options --fixture-graph-output-dir and --fixture-graph-output-type wouldn't allow you to actually pass custom value, since their action was to store a boolean:

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

$ pytest  --fixture-graph --fixture-graph-output-dir=./foo
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: argument --fixture-graph-output-dir: ignored explicit argument './foo'

This change is Reviewable

youtux avatar Aug 19 '20 07:08 youtux