Closed Bug 1447315 Opened 6 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)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: asilva)

References

Details

Attachments

(1 file)

42 bytes, text/x-github-pull-request
Details | Review
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
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]
Summary: fix flake8 warnings after upgrading dependencies → fix py.test warnings in backend tests from upgraded dependencies
Assignee: nobody → allan.tavares
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Attachment #9010918 - Flags: review?(bhearsum)
Product: Release Engineering → Release Engineering Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: