mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-15 02:22:36 +02:00
Fix tests
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user