mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Need to remove priority logic
This commit is contained in:
@@ -42,7 +42,6 @@ def test_get_provider_contains_correct_fields(client, sample_template):
|
||||
"created_by_name",
|
||||
"display_name",
|
||||
"identifier",
|
||||
"priority",
|
||||
"notification_type",
|
||||
"active",
|
||||
"updated_at",
|
||||
@@ -53,24 +52,6 @@ def test_get_provider_contains_correct_fields(client, sample_template):
|
||||
assert allowed_keys == set(json_resp[0].keys())
|
||||
|
||||
|
||||
def test_should_be_able_to_update_priority(client, restore_provider_details):
|
||||
provider = ProviderDetails.query.first()
|
||||
|
||||
update_resp = client.post(
|
||||
"/provider-details/{}".format(provider.id),
|
||||
headers=[
|
||||
("Content-Type", "application/json"),
|
||||
create_admin_authorization_header(),
|
||||
],
|
||||
data=json.dumps({"priority": 5}),
|
||||
)
|
||||
assert update_resp.status_code == 200
|
||||
update_json = json.loads(update_resp.get_data(as_text=True))["provider_details"]
|
||||
assert update_json["identifier"] == provider.identifier
|
||||
assert update_json["priority"] == 5
|
||||
assert provider.priority == 5
|
||||
|
||||
|
||||
def test_should_be_able_to_update_status(client, restore_provider_details):
|
||||
provider = ProviderDetails.query.first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user