Skip to content

Commit

Permalink
Update test_officer_and_department.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Aug 3, 2023
1 parent 2a67283 commit 46c833e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OpenOversight/tests/routes/test_officer_and_department.py
Original file line number Diff line number Diff line change
Expand Up @@ -2337,14 +2337,18 @@ 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

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(
Expand Down

0 comments on commit 46c833e

Please sign in to comment.