Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmurtry committed Feb 6, 2025
1 parent 530c62d commit 99d91a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/app/service/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,9 @@ def test_remove_user_from_service(notify_db, notify_db_session, client, sample_u
mocked_salesforce_client.engagement_delete_contact_role.assert_called_with(third_permission.service, third_permission.user)


def test_remove_user_from_service_only_user_with_manage_perm(notify_api, notify_db, notify_db_session, client, sample_user_service_permission, mocker):
def test_remove_user_from_service_only_user_with_manage_perm(
notify_api, notify_db, notify_db_session, client, sample_user_service_permission, mocker
):
with notify_api.test_request_context():
with notify_api.test_client() as client:
manage_settings_user = sample_user_service_permission.user
Expand Down Expand Up @@ -1545,7 +1547,9 @@ def test_cannot_remove_only_user_from_service(notify_api, notify_db, notify_db_s
assert result["message"] == "You cannot remove the only user for a service"


def test_remove_user_from_service_with_2_users(notify_api, notify_db, notify_db_session, client, sample_user_service_permission, mocker):
def test_remove_user_from_service_with_2_users(
notify_api, notify_db, notify_db_session, client, sample_user_service_permission, mocker
):
with notify_api.test_request_context():
with notify_api.test_client() as client:
second_user = create_user(email="[email protected]")
Expand Down

0 comments on commit 99d91a5

Please sign in to comment.