We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running pytest --generate returns the following error:
pytest --generate
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] pytest: error: unrecognized arguments: --generate
Running this command should produce an example.json file in every folder where an init file is defined
The text was updated successfully, but these errors were encountered:
I suspect that you forgot to run it inside poetry shell.
poetry shell
This will probably fail:
$ pytest --generate ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] pytest: error: unrecognized arguments: --generate inifile: /Users/lpsinger/src/gcn-classic-to-json/pyproject.toml rootdir: /Users/lpsinger/src/gcn-classic-to-json
But this will succeed:
$ poetry shell (gcn-classic-to-json-py3.12) % pytest --generate ============================= test session starts ============================== platform darwin -- Python 3.12.7, pytest-8.3.1, pluggy-1.5.0 rootdir: /Users/lpsinger/src/gcn-classic-to-json configfile: pyproject.toml plugins: cov-5.0.0, gcn-classic-to-json-0.1.0 collected 4 items gcn_classic_to_json/test/test_notices.py .xss [100%] =================== 1 passed, 2 skipped, 1 xfailed in 0.18s ====================
As will this:
$ poetry run pytest --generate ============================= test session starts ============================== platform darwin -- Python 3.12.7, pytest-8.3.1, pluggy-1.5.0 rootdir: /Users/lpsinger/src/gcn-classic-to-json configfile: pyproject.toml plugins: cov-5.0.0, gcn-classic-to-json-0.1.0 collected 4 items gcn_classic_to_json/test/test_notices.py .xss [100%] =================== 1 passed, 2 skipped, 1 xfailed in 0.18s ====================
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Current behavior
Running
pytest --generate
returns the following error:Expected behavior
Running this command should produce an example.json file in every folder where an init file is defined
The text was updated successfully, but these errors were encountered: