-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
}, | ||
|
@@ -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" | ||
|
||
|
@@ -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() | ||
|
||
|