Typer options unexpectedly being propagated to pytest #817
Unanswered
virgesmith
asked this question in
Questions
Replies: 1 comment
-
Here, I fixed it for you.
This works by tricking PyTest into thinking it got no arguments, so Typer can react to them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Above code saved to
issue.py
If - and only if - the option is specified, it is somehow propagated to pytest. This works as expected (runs pytest):but this fails:
which is a pytest error message with
pytest
being replaced withissue.py
, which you can confirm by runningOperating System
Linux
Operating System Details
No response
Typer Version
0.12.3
Python Version
3.12.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions