-
Notifications
You must be signed in to change notification settings - Fork 80
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
1 parent
9a77482
commit 7f09309
Showing
1 changed file
with
2 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -29520,6 +29520,7 @@ def _password_reset(*args, **kwargs): | |
data={"username": "[email protected]", "password": "Welcome@10"}, | ||
) | ||
actual = response_log.json() | ||
UserEmailConfirmation(email="[email protected]").save() | ||
|
||
assert actual["success"] | ||
assert actual["error_code"] == 0 | ||
|
@@ -29531,10 +29532,10 @@ def _password_reset(*args, **kwargs): | |
"Authorization": pytest.token_type_delete + " " + pytest.access_token_delete | ||
}, | ||
).json() | ||
UserEmailConfirmation(email="[email protected]").save() | ||
assert response["success"] | ||
assert response["message"] == "Account deleted" | ||
assert response["error_code"] == 0 | ||
assert UserEmailConfirmation.objects(email="[email protected]").count() == 0 | ||
|
||
|
||
def test_delete_account_already_deleted(): | ||
|