-
Notifications
You must be signed in to change notification settings - Fork 9
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
12 changed files
with
55 additions
and
46 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
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
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 |
---|---|---|
|
@@ -25,24 +25,24 @@ def user(test_get_db): | |
return user | ||
|
||
|
||
def test_success_create_user_object(test_get_db, user): | ||
def test_success_create_user_object(test_get_db, user) -> None: | ||
assert user.email == "[email protected]" | ||
assert user.username == "test_user" | ||
assert user.is_active | ||
assert user.is_superuser == False | ||
|
||
|
||
def test_success_user_exists_by_email(test_get_db, user): | ||
def test_success_user_exists_by_email(test_get_db, user) -> None: | ||
repository = UserRepository(test_get_db) | ||
assert repository.user_exists_by_email(user.email) | ||
|
||
|
||
def test_success_user_exists_by_username(test_get_db, user): | ||
def test_success_user_exists_by_username(test_get_db, user) -> None: | ||
repository = UserRepository(test_get_db) | ||
assert repository.user_exists_by_username(user.username) | ||
|
||
|
||
def test_success_get_user_by_email(test_get_db, user): | ||
def test_success_get_user_by_email(test_get_db, user) -> None: | ||
repository = UserRepository(test_get_db) | ||
user = repository.get_user_by_email(user.email) | ||
assert user.email == "[email protected]" | ||
|
@@ -51,7 +51,7 @@ def test_success_get_user_by_email(test_get_db, user): | |
assert user.is_superuser == False | ||
|
||
|
||
def test_success_get_user_by_username(test_get_db, user): | ||
def test_success_get_user_by_username(test_get_db, user) -> None: | ||
repository = UserRepository(test_get_db) | ||
user = repository.get_user_by_username(user.username) | ||
assert user.email == "[email protected]" | ||
|