Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels committed May 13, 2024
1 parent 54d5b40 commit f906489
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/app/dao/test_provider_details_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,14 @@ def test_get_sms_provider_with_equal_priority_returns_provider(


def test_get_current_sms_provider_returns_active_only(restore_provider_details):
# Note that we currently have two acive sms providers, sns and pinpoint
current_provider = get_current_provider("sms")
current_provider.active = False
dao_update_provider_details(current_provider)
current_provider = get_current_provider("sms")
current_provider.active = False
dao_update_provider_details(current_provider)

new_current_provider = get_current_provider("sms")

assert new_current_provider is None
Expand Down Expand Up @@ -308,5 +313,5 @@ def test_dao_get_provider_stats(notify_db_session):
assert result[5].identifier == "pinpoint"
assert result[5].notification_type == "sms"
assert result[5].supports_international is False
assert result[5].active is False
assert result[5].active is True
assert result[5].current_month_billable_sms == 0

0 comments on commit f906489

Please sign in to comment.