Closed
Bug 1447315
Opened 7 years ago
Closed 6 years ago
fix py.test warnings in backend tests from upgraded dependencies
Categories
(Release Engineering Graveyard :: Applications: Balrog (backend), enhancement, P1)
Release Engineering Graveyard
Applications: Balrog (backend)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: asilva)
References
Details
Attachments
(1 file)
We recently updated most of our dependencies, and the new flake8 is throwing a bunch of new warnings. They can be seen in logs such as https://taskcluster-artifacts.net/BW9QlMpERfC91iaIEvimmg/0/public/logs/live_backing.log
Comment 1•6 years ago
|
||
There's no 'warnings summary' section in the backend tests for the last push to master, see https://taskcluster-artifacts.net/QDvoN_gxQj-dbzVsqTN5mQ/0/public/logs/live_backing.log, but that seems to be because DeprecationWarning and PendingDeprecationWarning are suppressed by py.test as of 3.1. It shows all other warnings, see https://docs.pytest.org/en/latest/warnings.html for more info.
You can make them show up again with:
diff --git a/tox.ini b/tox.ini
index 9fca8d8..57885e2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,7 @@ deps = -rrequirements-test.txt
commands=
flake8 auslib scripts uwsgi
- py.test -n2 --cov=auslib --doctest-modules {posargs:auslib}
+ py.test -W default::DeprecationWarning -W default::PendingDeprecationWarning -n2 --cov=auslib --doctest-modules {posargs:auslib}
coverage run -a scripts/test-rules.py
[testenv:py27]
Updated•6 years ago
|
Summary: fix flake8 warnings after upgrading dependencies → fix py.test warnings in backend tests from upgraded dependencies
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → allan.tavares
Assignee | ||
Comment 2•6 years ago
|
||
Taskcluster log: https://taskcluster-artifacts.net/QUQPPlQURzm3BOwEQ0OnAQ/0/public/logs/live_backing.log
Attachment #9010918 -
Flags: review?(bhearsum)
Comment 3•6 years ago
|
||
Landed at https://github.com/mozilla/balrog/commit/1ed210d34baaa58cbe1bc2fbf330b148d03a2032, thanks for all the effort here.
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•6 years ago
|
Attachment #9010918 -
Flags: review?(bhearsum)
Updated•5 years ago
|
Product: Release Engineering → Release Engineering Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•