Page MenuHomePhabricator

Fix broken tests for the AWMD stats tool
Closed, ResolvedPublic

Description

Per https://gerrit.wikimedia.org/r/c/labs/tools/awmd-stats/+/475601, tests recently starting failing and needs to be fixed.

23:00:20 tests/test_app.py::TestApp::test_index_route FAILED                      [  5%]
23:00:23 tests/test_app.py::TestApp::test_docs_doc_route FAILED                   [ 11%]
23:00:26 tests/test_app.py::TestApp::test_test_route FAILED                       [ 16%]
23:00:30 tests/test_app.py::TestApp::test_raw_route FAILED                        [ 22%]
23:00:33 tests/test_app.py::TestApp::test_raw_month_route FAILED                  [ 27%]
23:00:36 tests/test_app.py::TestApp::test_month_month_route FAILED                [ 33%]
23:00:39 tests/test_app.py::TestApp::test_contributor_username_month_route FAILED [ 38%]

Error messages related to;

23:00:39 self = <tests.test_app.TestApp object at 0x7fc3cc6dbe10>
23:00:39 testapp = <FlaskClient <Flask 'awmdstats.app'>>
23:00:39 
23:00:39     def test_index_route(self, testapp):
23:00:39         response = testapp.get('/')
23:00:39 >       assert response.status_code == 200
23:00:39 E       assert 500 == 200
23:00:39 E        +  where 500 = <Response streamed [500 INTERNAL SERVER ERROR]>.status_code
23:00:39 
23:00:39 tests/test_app.py:17: AssertionError

Event Timeline

xSavitar renamed this task from Fix broken test for the AWMD stats tool to Fix broken tests for the AWMD stats tool.Nov 24 2018, 10:16 PM
xSavitar updated the task description. (Show Details)