-
Notifications
You must be signed in to change notification settings - Fork 670
chore: remove pytest-console-scripts specific config #1714
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
Conversation
2a71da0
to
a2f7996
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JohnVillalovos just a quick note :)
0546f66
to
2ef0b5b
Compare
@nejch Thanks for the info above. If you have any ideas why my change is failing it would be appreciated. I guess I could just drop using the decorator as it seems to work okay without it. But I think it is using "in-process" mode by default instead of "subprocess" mode. Not sure if that matters or not. |
b598568
to
05ea611
Compare
@nejch I got it figured out. Ready for review. Thanks. |
Thanks @JohnVillalovos. I hope my comment wasn't too confusing. What you did in [testenv:cli_func_v4]
deps = -r{toxinidir}/requirements-docker.txt
commands =
pytest --script-launch-mode=subprocess --cov --cov-report xml tests/functional/cli {posargs} and it would work (but omit it for py_func_v4). The reason I added subprocess mode initially I think was because it would more closely resemble the environment of a user running the CLI I believe. |
Remove the pytest-console-scripts specific config from the global '[pytest]' config section. Use the command line option `--script-launch-mode=subprocess` Closes #1713
05ea611
to
e80dcb1
Compare
Thanks @nejch When I got the error before when using the command line argument |
Remove the pytest-console-scripts specific config from the global
'[pytest]' config section.
Move it to a command line option for the functional tests which use
the Docker container.
Closes #1713