-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2684] Replaced call_name with display_name
- Loading branch information
1 parent
abaf33f
commit 64dd234
Showing
8 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
...counts/migrations/0077_no_display_name.py → ...r/accounts/migrations/0077_no_roepnaam.py
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
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
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 |
---|---|---|
|
@@ -137,7 +137,7 @@ def test_user_information_profile_page(self): | |
response = self.app.get(self.url, user=self.user) | ||
|
||
self.assertContains(response, self.user.first_name) | ||
self.assertContains(response, f"Welkom, {self.user.first_name}") | ||
self.assertContains(response, f"Welkom, {self.user.display_name}") | ||
self.assertContains(response, f"{self.user.infix} {self.user.last_name}") | ||
self.assertContains(response, self.user.email) | ||
self.assertContains(response, self.user.phonenumber) | ||
|
@@ -355,6 +355,7 @@ def test_save_filled_form(self): | |
self.user.refresh_from_db() | ||
self.assertEqual(self.user.first_name, "First name") | ||
self.assertEqual(self.user.last_name, "Last name") | ||
self.assertEqual(self.user.display_name, "First name") | ||
self.assertEqual(self.user.email, "[email protected]") | ||
self.assertEqual(self.user.street, "Keizersgracht") | ||
self.assertEqual(self.user.housenumber, "17 d") | ||
|
@@ -385,6 +386,7 @@ def test_name_validation(self): | |
"first_name": [error_msg], | ||
"infix": [error_msg], | ||
"last_name": [error_msg], | ||
"display_name": [error_msg], | ||
"city": [error_msg], | ||
"street": [error_msg], | ||
} | ||
|
@@ -442,6 +444,7 @@ def test_form_for_digid_brp_user_saves_data(self): | |
|
||
user.refresh_from_db() | ||
|
||
self.assertEqual(user.display_name, "name") | ||
self.assertEqual(user.email, "[email protected]") | ||
self.assertEqual(user.phonenumber, "0612345678") | ||
|
||
|
@@ -821,6 +824,7 @@ def setUp(self): | |
infix="de", | ||
last_name="Kooyman", | ||
login_type=LoginTypeChoices.digid, | ||
display_name="Meertje", | ||
) | ||
self.url = reverse("profile:data") | ||
|
||
|
@@ -838,6 +842,7 @@ def setUp(self): | |
self.expected_response.city, | ||
# self.expected_response.country, | ||
self.user.bsn, | ||
self.user.display_name, | ||
self.user.email, | ||
self.user.phonenumber, | ||
] | ||
|
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
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
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
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
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