Skip to content

Commit b3d741c

Browse files
Feature/fix toxi (#445)
* Update tox.ini * fix unit test failures * Update web_testing.py
1 parent 57a681a commit b3d741c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ci_cd/unit_tests/web_testing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,9 @@ def test_edit_application_post(self):
16321632
'regulations': 1,
16331633
}
16341634
response = self._post_test_handler(route, data_dict)
1635-
assert response.status_code == 200
1635+
match = _three_o_two_handler(response.headers, f"/edit_application/{app.ID}")
1636+
assert response.status_code == 302
1637+
assert match
16361638

16371639
def test_contacts_get(self):
16381640
app = BusinessApplications.query.filter_by(ApplicationName=TEST_APP_NAME).first()

0 commit comments

Comments
 (0)