Skip to content

Commit

Permalink
fixing import order
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisDDBT committed Feb 20, 2025
1 parent 3105eeb commit 13de714
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions payroll/tests/services/test_payroll.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from random import randrange
from statistics import mean
import json

import pytest
from pytest_django.asserts import assertNumQueries
Expand Down Expand Up @@ -316,7 +316,8 @@ def test_update_all_employee_pay_periods(db):

# then there are 2 pay periods
assert EmployeePayPeriods.objects.count() == 2



def update_notes_success(self, db, client):
url = "http://localhost:8000/payroll/api/888813/2024/employees/notes"
response = client.post(
Expand All @@ -329,19 +330,14 @@ def update_notes_success(self, db, client):
),
content_type="application/json",
)

assert response.status_code == 200


def update_notes_fail(self, db, client):
url = "http://localhost:8000/payroll/api/888813/2024/employees/notes"
response = client.post(
url,
data=json.dumps(
{
"notes": "some notes"
}
),
data=json.dumps({"notes": "some notes"}),
content_type="application/json",
)

assert response.status_code == 400

0 comments on commit 13de714

Please sign in to comment.