-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Fix pytest version #1495
Fix pytest version #1495
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1495 +/- ##
========================================
Coverage ? 28.3%
========================================
Files ? 125
Lines ? 9233
Branches ? 1188
========================================
Hits ? 2613
Misses ? 6523
Partials ? 97
Continue to review full report at Codecov.
|
@mbeacom I am not entirely sure how it was working but I think in latest pytest, they don't allow environment variables to be declared in the |
@@ -36,6 +36,7 @@ jobs: | |||
- codecov | |||
env: | |||
- PYTHONPATH="${TRAVIS_BUILD_DIR}/app/" | |||
- DJANGO_SETTINGS_MODULE="app.settings" |
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.
Is this needed?
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.
Yes. Seems so. The environment variable declaration in setup.cfg under tool:pytest
seems to not been working most probably in the newer versions. They need the environment variables to be set before the pytest can be run. Without this travis fails.
@@ -1,5 +1,5 @@ | |||
-r base.txt | |||
pytest==3.5.0 | |||
pytest>3.5.0 |
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.
Should we just pin this to the appropriate version or completely drop the version pinning for pytest?
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.
I think dropping version pinning is better. Pinning is what caused a problem here. I would have however done >=
. But that might not upgrade the package installed because the current 3.5.0 will anyways satisfy.
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.
lgtm
Description
@owocki @leonprou this should fix the travis error in pytest.
@mbeacom review.
Checklist
Affected core subsystem(s)
Testing
Refers/Fixes
Fixes #1492
Refs #1491