Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Sep 13, 2023
1 parent 96fc833 commit 398545f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/peoplefinder/test/views/test_profile_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,13 @@ def test_profile_edit_contact_view(state):
response = state.client.get(view_url)

assert response.status_code == 200
assert state.person.contact_email is None
assert state.person.contact_email == "[email protected]"
assert state.person.primary_phone_number is None
assert state.person.secondary_phone_number is None

form = ContactProfileEditForm(
{
"contact_email": "jane.smith@test.com",
"contact_email": "jane.smith123@test.com",
"primary_phone_number": "01234567890",
"secondary_phone_number": "09876543210",
},
Expand All @@ -445,7 +445,7 @@ def test_profile_edit_contact_view(state):

assert response.status_code == 302
assert response.url == view_url
assert state.person.contact_email == "jane.smith@test.com"
assert state.person.contact_email == "jane.smith123@test.com"
assert state.person.primary_phone_number == "01234567890"
assert state.person.secondary_phone_number == "09876543210"

Expand All @@ -462,9 +462,9 @@ def test_profile_edit_teams_view(state):
response = state.client.get(view_url)

assert response.status_code == 200
assert state.person.contact_email is None
assert state.person.primary_phone_number is None
assert state.person.secondary_phone_number is None
assert state.person.grade is None
assert state.person.manager is None
assert state.person.do_not_work_for_dit is False

grade = Grade.objects.all().first()

Expand Down

0 comments on commit 398545f

Please sign in to comment.