-
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.
Merge branch 'main' of https://github.com/JohnGrubba/ezauth
- Loading branch information
Showing
8 changed files
with
145 additions
and
48 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 |
---|---|---|
|
@@ -41,17 +41,6 @@ def test_update_username_valid(fixturesessiontoken_user): | |
assert resp_json.get("createdAt") is not None | ||
|
||
|
||
def test_update_email(fixturesessiontoken_user): | ||
client.cookies.set("session", fixturesessiontoken_user[0]) | ||
# E-Mail should not be updateable through this endpoint | ||
response = client.patch("/profile", json={"email": "[email protected]"}) | ||
resp_json = response.json() | ||
assert response.status_code == 200 | ||
assert resp_json.get("email") == fixturesessiontoken_user[1]["email"] | ||
assert resp_json.get("username") == fixturesessiontoken_user[1]["username"] | ||
assert resp_json.get("createdAt") is not None | ||
|
||
|
||
def test_update_password(fixturesessiontoken_user): | ||
client.cookies.set("session", fixturesessiontoken_user[0]) | ||
# Password should not be updateable through this endpoint | ||
|
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