diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-04-06 00:51:04 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-04-06 00:51:04 +0100 |
commit | f15555a3bda2afbb5860cb303405cf5fcd51ea45 (patch) | |
tree | 8ffaf22d058dc4b6dd2e069979ca1dcf77032f34 /core/TESTS/test_parsers.py | |
parent | dcfff1ede7d33c91a87f4874181156b46ec75589 (diff) | |
download | troggle-f15555a3bda2afbb5860cb303405cf5fcd51ea45.tar.gz troggle-f15555a3bda2afbb5860cb303405cf5fcd51ea45.tar.bz2 troggle-f15555a3bda2afbb5860cb303405cf5fcd51ea45.zip |
more tests
Diffstat (limited to 'core/TESTS/test_parsers.py')
-rw-r--r-- | core/TESTS/test_parsers.py | 8 |
1 files changed, 4 insertions, 4 deletions
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"<td><a href=\"/personexpedition/FredSmartarse/{TEST_YEAR}\">{TEST_YEAR}</a></td>" phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") |