fix tests

This commit is contained in:
Kenneth Kehl
2024-08-12 14:07:26 -07:00
parent 99d687da4f
commit 486d5f66e9
4 changed files with 6 additions and 13 deletions

View File

@@ -105,7 +105,6 @@ def test_get_provider_versions_contains_correct_fields(client, notify_db_session
"created_by",
"display_name",
"identifier",
"priority",
"notification_type",
"active",
"version",

View File

@@ -80,12 +80,8 @@ def _notify_db(notify_api):
@pytest.fixture(scope="function")
def sms_providers(_notify_db):
"""
In production we randomly choose which provider to use based on their priority. To guarantee tests run the same each
time, make sure we always choose sns. You'll need to override them in your tests if you wish to do something
different.
"""
get_provider_details_by_identifier("sns").priority = 100
pass
# get_provider_details_by_identifier("sns").priority = 100
@pytest.fixture(scope="function")