fixed sessions overriding while uploading csvs

This commit is contained in:
chrisw
2018-03-13 16:29:20 +00:00
parent 7b6520988c
commit 287230acac
3 changed files with 247 additions and 95 deletions

View File

@@ -2516,6 +2516,7 @@ def client_request(logged_in_client):
endpoint,
_expected_status=200,
_follow_redirects=False,
_expected_redirect=None,
_test_page_title=True,
**endpoint_kwargs
):
@@ -2524,6 +2525,8 @@ def client_request(logged_in_client):
follow_redirects=_follow_redirects,
)
assert resp.status_code == _expected_status
if _expected_redirect:
assert resp.location == _expected_redirect
page = BeautifulSoup(resp.data.decode('utf-8'), 'html.parser')
if _test_page_title:
page_title, h1 = (