Move helper function

`test_utils.py` is actually a file for testing some utils, not
some utils for testing.

Test helper functions and fixtures are better placed in conftest,
and also means that we can use them in conftest.
This commit is contained in:
Chris Hill Scott
2017-07-04 13:38:08 +01:00
parent 11adf17330
commit ecc506306b
10 changed files with 19 additions and 18 deletions

View File

@@ -7,9 +7,13 @@ from flask import url_for
from freezegun import freeze_time
from notifications_python_client.errors import HTTPError
from tests.conftest import service_one as create_sample_service
from tests.conftest import mock_get_service_email_template, mock_get_service_letter_template, SERVICE_ONE_ID
from tests.conftest import (
mock_get_service_email_template,
mock_get_service_letter_template,
normalize_spaces,
SERVICE_ONE_ID,
)
from tests import validate_route_permission, template_json, single_notification_json
from tests.app.test_utils import normalize_spaces
from app.main.views.templates import get_last_use_message, get_human_readable_delta