-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UserData failing with unset name
This fixes a bug where the UserData class would fail when first_name or last_name would be accessed without being set first.
- Loading branch information
1 parent
f7710dd
commit e07828c
Showing
4 changed files
with
7 additions
and
10 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
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 |
---|---|---|
|
@@ -176,7 +176,7 @@ def test_store_user_data_error(): | |
@pytest.mark.parametrize( | ||
"user_data, expected_message_start, expected", | ||
[ | ||
(UserSignUpData(), "Email", False), | ||
(UserSignUpData(first_name="a", last_name="b"), "Email", False), | ||
(UserSignUpData(email="[email protected]", first_name="1eer3", last_name="2aa4"), "First", False), | ||
(UserSignUpData(email="[email protected]", first_name="john", last_name="2bbere4 "), "Last", False), | ||
(UserSignUpData(email="[email protected]", first_name="john", last_name="doe"), "", True), | ||
|