Skip to content

Commit

Permalink
Update test_email_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Aug 14, 2024
1 parent 14c45fd commit e26a511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenOversight/tests/test_email_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def test_email_create_message(faker):
def test_email_client_auto_detect_debug_mode(app):
with app.app_context():
app.debug = True
assert isinstance(EmailClient.auto_detect(), SimulatedEmailProvider)
assert type(EmailClient.auto_detect()) is SimulatedEmailProvider


def test_email_client_auto_detect_testing_mode(app):
with app.app_context():
app.testing = True
assert isinstance(EmailClient.auto_detect(), SimulatedEmailProvider)
assert type(EmailClient.auto_detect()) is SimulatedEmailProvider


def test_email_client_auto_detect_follows_precedence(app):
Expand Down

0 comments on commit e26a511

Please sign in to comment.