mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Check the uniqueness of the service name ignoring case.
When the service name changes the email_from changes to. Renamed find_all_service_names to find_all_service_names_lower.
This commit is contained in:
@@ -10,8 +10,9 @@ class TestClient(FlaskClient):
|
||||
with self.session_transaction() as session:
|
||||
session['user_id'] = user.id
|
||||
session['_fresh'] = True
|
||||
if mocker and service:
|
||||
if mocker:
|
||||
mocker.patch('app.user_api_client.get_user', return_value=user)
|
||||
if mocker and service:
|
||||
mocker.patch('app.service_api_client.get_service', return_value={'data': service})
|
||||
login_user(user, remember=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user