All tests passing and merged with master.

This commit is contained in:
Nicholas Staples
2016-01-27 16:30:33 +00:00
51 changed files with 763 additions and 892 deletions

View File

@@ -6,8 +6,8 @@ def test_get_should_render_add_service_template(app_,
api_user_active,
mock_get_service,
mock_get_services,
mock_user_loader,
mock_user_dao_get_by_email,
mock_get_user,
mock_get_user_by_email,
mock_login):
with app_.test_request_context():
with app_.test_client() as client:
@@ -21,8 +21,8 @@ def test_should_add_service_and_redirect_to_next_page(app_,
mock_create_service,
mock_get_services,
api_user_active,
mock_user_loader,
mock_user_dao_get_by_email,
mock_get_user,
mock_get_user_by_email,
mock_login):
with app_.test_request_context():
with app_.test_client() as client:
@@ -40,8 +40,8 @@ def test_should_return_form_errors_when_service_name_is_empty(app_,
api_user_active,
mock_get_service,
mock_get_services,
mock_user_loader,
mock_user_dao_get_by_email,
mock_get_user,
mock_get_user_by_email,
mock_login):
with app_.test_request_context():
with app_.test_client() as client:
@@ -53,9 +53,9 @@ def test_should_return_form_errors_when_service_name_is_empty(app_,
def test_should_return_form_errors_with_duplicate_service_name(app_,
mock_get_services,
mock_user_loader,
mock_get_user,
api_user_active,
mock_user_dao_get_by_email,
mock_get_user_by_email,
mock_login):
with app_.test_request_context():
with app_.test_client() as client: