From 8f1d6e2cc22563bd4fca94f5e7e08085154e8262 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 30 Apr 2021 18:02:05 +0100 Subject: file upload integration test working --- core/TESTS/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/TESTS/tests.py') diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index 77cd998..7a12637 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -25,6 +25,7 @@ todo = '''ADD TESTS when we are redirecting /expofiles/ to a remote file-deliver import unittest import re +from http import HTTPStatus from django.test import TestCase, SimpleTestCase, Client @@ -170,8 +171,6 @@ class PageTests(TestCase): ph = r'All Survey scans folders ' content = response.content.decode() phmatch = re.search(ph, content) - # with open('ss-op.html', 'w') as f: - # f.write(content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'") -- cgit v1.2.3