Fix tests

This commit is contained in:
Timothy Hobbs
2018-08-30 12:03:54 +02:00
parent a7a7ade749
commit 13539e3056
2 changed files with 13 additions and 3 deletions

View File

@ -77,3 +77,12 @@ def create_ticket(**kwargs):
HELPDESK_URLCONF = 'helpdesk.urls'
def print_response(response, stdout=False):
content = response.content.decode()
if stdout:
print(content)
else:
with open("response.html", "w") as f: # pragma: no cover
f.write(content) # pragma: no cover