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

@@ -1778,3 +1778,9 @@ def client_request(logged_in_client):
return BeautifulSoup(resp.data.decode('utf-8'), 'html.parser')
return ClientRequest
def normalize_spaces(input):
if isinstance(input, str):
return ' '.join(input.split())
return normalize_spaces(' '.join(item.text for item in input))