-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: fix user attribute cardinalities
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 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 |
---|---|---|
|
@@ -187,8 +187,8 @@ def test_edition_remove_fields( | |
assert not logged_user.display_name | ||
assert not logged_user.phone_numbers | ||
|
||
logged_user.formatted_name = ["John (johnny) Doe"] | ||
logged_user.family_name = ["Doe"] | ||
logged_user.formatted_name = "John (johnny) Doe" | ||
logged_user.family_name = "Doe" | ||
logged_user.emails = ["[email protected]"] | ||
logged_user.given_name = None | ||
logged_user.photo = None | ||
|
@@ -323,7 +323,7 @@ def test_bad_email(testclient, logged_user): | |
def test_surname_is_mandatory(testclient, logged_user): | ||
res = testclient.get("/profile/user", status=200) | ||
form = res.forms["baseform"] | ||
logged_user.family_name = ["Doe"] | ||
logged_user.family_name = "Doe" | ||
|
||
form["family_name"] = "" | ||
|
||
|
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 |
---|---|---|
|
@@ -148,7 +148,7 @@ def test_password_initialization_mail(smtpd, testclient, backend, logged_admin): | |
assert smtpd.messages[0]["X-RcptTo"] == "[email protected]" | ||
|
||
u.reload() | ||
u.password = ["correct horse battery staple"] | ||
u.password = "correct horse battery staple" | ||
u.save() | ||
|
||
res = testclient.get("/profile/temp/settings", status=200) | ||
|