Merge pull request #2244 from alphagov/request-letter-branding

Tell people they can have their logo on letters
This commit is contained in:
Chris Hill-Scott
2018-08-29 15:52:58 +01:00
committed by GitHub
7 changed files with 97 additions and 3 deletions

View File

@@ -2734,8 +2734,25 @@ def client_request(
_test_page_title=True,
**endpoint_kwargs
):
resp = logged_in_client.get(
return ClientRequest.get_url(
url_for(endpoint, **(endpoint_kwargs or {})),
_expected_status=_expected_status,
_follow_redirects=_follow_redirects,
_expected_redirect=_expected_redirect,
_test_page_title=_test_page_title,
)
@staticmethod
def get_url(
url,
_expected_status=200,
_follow_redirects=False,
_expected_redirect=None,
_test_page_title=True,
**endpoint_kwargs
):
resp = logged_in_client.get(
url,
follow_redirects=_follow_redirects,
)
assert resp.status_code == _expected_status, resp.location