From 4782f3b184ffcabcb24661aa188c8a49ab3ae1fc Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 2 May 2021 22:47:59 +0100 Subject: fixed test mistake & bug in Edit This --- core/TESTS/tests_logins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/TESTS/tests_logins.py') diff --git a/core/TESTS/tests_logins.py b/core/TESTS/tests_logins.py index 0cbdad9..9148207 100644 --- a/core/TESTS/tests_logins.py +++ b/core/TESTS/tests_logins.py @@ -91,9 +91,9 @@ class PostTests(TestCase): content = response.content.decode() self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, HTTPStatus.OK) - with open('test_up.html', 'w') as f: - f.write(content) - t = re.search('\'README', content) + # with open('test_up.html', 'w') as f: + # f.write(content) + t = re.search('README', content) self.assertIsNotNone(t, 'Logged in but failed to see "\'README"' ) t = re.search(' saved as', content) self.assertIsNotNone(t, 'Logged in but failed to see "File(s) saved as"' ) -- cgit v1.2.3