From f15555a3bda2afbb5860cb303405cf5fcd51ea45 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 6 Apr 2023 00:51:04 +0100 Subject: more tests --- core/TESTS/test_parsers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/TESTS/test_parsers.py') diff --git a/core/TESTS/test_parsers.py b/core/TESTS/test_parsers.py index 2d951bc..70f19cd 100644 --- a/core/TESTS/test_parsers.py +++ b/core/TESTS/test_parsers.py @@ -118,8 +118,8 @@ class ImportTest(TestCase): response = self.client.get("/survexfile/caves/") self.assertEqual(response.status_code, HTTPStatus.OK) content = response.content.decode() - with open('_test_response.html', 'w') as f: - f.write(content) + # with open('_test_response.html', 'w') as f: + # f.write(content) ph = f"Caves with subdirectories" phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") @@ -130,8 +130,8 @@ class ImportTest(TestCase): response = self.client.get("/people") self.assertEqual(response.status_code, HTTPStatus.OK) content = response.content.decode() - with open('_test_response.html', 'w') as f: - f.write(content) + # with open('_test_response.html', 'w') as f: + # f.write(content) ph = f"{TEST_YEAR}" phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") -- cgit v1.2.3