chore: remove pytest-console-scripts specific config#1714
Conversation
2a71da0 to
a2f7996
Compare
nejch
left a comment
There was a problem hiding this comment.
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