summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-05 23:17:11 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-05 23:17:11 +0000
commit63dde36389fa0634c8800c2c32d5fb65baac266c (patch)
tree63392f3fad7c416bc4cbdcde26351bf87af1bb3f /core
parent8fc25de794dfd74b58421e0436f87b035c4529d9 (diff)
downloadtroggle-63dde36389fa0634c8800c2c32d5fb65baac266c.tar.gz
troggle-63dde36389fa0634c8800c2c32d5fb65baac266c.tar.bz2
troggle-63dde36389fa0634c8800c2c32d5fb65baac266c.zip
100th test
Diffstat (limited to 'core')
-rw-r--r--core/TESTS/test_parsers.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/TESTS/test_parsers.py b/core/TESTS/test_parsers.py
index 44b9d8a..89e38c5 100644
--- a/core/TESTS/test_parsers.py
+++ b/core/TESTS/test_parsers.py
@@ -112,7 +112,18 @@ class ImportTest(TestCase):
ph = f"'fsmartarse'"
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
-
+
+ def test_survexfiles(self):
+ # Needs another test with test data
+ 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)
+ ph = f"Caves with subdirectories"
+ phmatch = re.search(ph, content)
+ self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
+
def test_people(self):
# Needs another test with test data