From 46c833ed6fa80616f9886ba17302ea62671bb435 Mon Sep 17 00:00:00 2001 From: michplunkett <5885605+michplunkett@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:04:19 -0500 Subject: [PATCH] Update test_officer_and_department.py --- OpenOversight/tests/routes/test_officer_and_department.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenOversight/tests/routes/test_officer_and_department.py b/OpenOversight/tests/routes/test_officer_and_department.py index 676be3ba1..8c6c654cc 100644 --- a/OpenOversight/tests/routes/test_officer_and_department.py +++ b/OpenOversight/tests/routes/test_officer_and_department.py @@ -2337,6 +2337,7 @@ def test_admin_can_edit_salary(mockdata, client, session): def test_ac_can_edit_salary_in_their_dept(mockdata, client, session): with current_app.test_request_context(): login_ac(client) + user = User.query.filter_by(ac_department_id=AC_DEPT).first() officer = Officer.query.filter_by(department_id=AC_DEPT).first() officer_id = officer.id @@ -2344,7 +2345,10 @@ def test_ac_can_edit_salary_in_their_dept(mockdata, client, session): Salary.query.filter_by(officer_id=officer_id).delete() form = SalaryForm( - salary=123456.78, overtime_pay=666.66, year=2019, is_fiscal_year=False + salary=123456.78, + overtime_pay=666.66, + year=2019, + is_fiscal_year=False, ) rv = client.post(