Skip to content

Commit

Permalink
Fix user delete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alneberg committed Feb 18, 2022
1 parent b359198 commit 9a00609
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_user_delete.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Standard libraries
import http
import unittest

# Installed
import flask
import flask_mail
import itsdangerous
import json
import pytest
Expand Down Expand Up @@ -57,8 +59,8 @@ def test_del_self_nouser(client):
data=None,
content_type="application/json",
)
# An email sent for partial token but none for deletion confirmation
assert mock_mail_send.call_count == 1
# No token email and none for deletion confirmation
assert mock_mail_send.call_count == 0
assert response.status_code == http.HTTPStatus.UNAUTHORIZED


Expand Down

0 comments on commit 9a00609

Please sign in to comment.