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:
Rebecca Law
2016-03-31 10:26:03 +01:00
parent ab50ed6368
commit 1871243cc8
7 changed files with 25 additions and 29 deletions

View File

@@ -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)