-
Notifications
You must be signed in to change notification settings - Fork 956
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
Add integration test for installing pysnooper #76
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ envlist = | |
flake8 | ||
pylint | ||
bandit | ||
pysnooper | ||
py{27,34,35,36,37,38,py,py3} | ||
readme | ||
requirements | ||
|
@@ -16,6 +17,7 @@ description = Unit tests | |
deps = | ||
pytest | ||
python_toolbox | ||
pysnooper | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This installs the latest released version of pysnooper off PyPI. This is most probably not what you want. Note that pysnooper (off the checked out commit) is already installed by Tox automatically. Try running |
||
commands = pytest | ||
setenv = | ||
# until python_toolbox is fixed | ||
|
@@ -54,6 +56,13 @@ deps = pip-tools | |
commands = pip-compile --output-file requirements.txt requirements.in | ||
changedir = {toxinidir} | ||
|
||
[testenv:pysnooper] | ||
description = Ensure pip installs pysnooper | ||
deps = pip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to install |
||
commands = | ||
pip install pysnooper | ||
pip show pysnooper | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not an integration test. Think: What does this verify? Is the pysnooper code run with it? (It's not.) Also, installing pysnooper is unneeded, and even if it were you can move it to |
||
|
||
[bandit] | ||
exclude = .tox,build,dist,tests | ||
targets = . | ||
|
@@ -63,3 +72,8 @@ exclude = .tox,build,dist,pysnooper.egg-info | |
|
||
[pytest] | ||
addopts = --strict | ||
|
||
[pysnooper] | ||
commands = | ||
pip install pysnooper | ||
pip show pysnooper | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is unneeded. You can remove it. (Explanation: The |
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.
This looks very verbose.
What if you simply would run your integration test with the
[testenv]
section? (Then all this would not be needed. Hmm?)