summaryrefslogtreecommitdiffstats
path: root/core/TESTS/test_caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-04-06 00:16:44 +0100
committerPhilip Sargent <philip.sargent@gmail.com>2023-04-06 00:16:44 +0100
commitdcfff1ede7d33c91a87f4874181156b46ec75589 (patch)
treed0001204f28170fef69867071605ea9aef22acd8 /core/TESTS/test_caves.py
parent0f76422d851cb7b1f7185c4c6c86e5004df748d7 (diff)
downloadtroggle-dcfff1ede7d33c91a87f4874181156b46ec75589.tar.gz
troggle-dcfff1ede7d33c91a87f4874181156b46ec75589.tar.bz2
troggle-dcfff1ede7d33c91a87f4874181156b46ec75589.zip
tests for QM pages
Diffstat (limited to 'core/TESTS/test_caves.py')
-rw-r--r--core/TESTS/test_caves.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/TESTS/test_caves.py b/core/TESTS/test_caves.py
index baa4ffa..e35d360 100644
--- a/core/TESTS/test_caves.py
+++ b/core/TESTS/test_caves.py
@@ -175,3 +175,21 @@ class FixturePageTests(TestCase):
content = response.content.decode()
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") # 200 & Page Not Found
+
+ def test_fix_qms(self):
+ response = self.client.get("/cave/qms/1623-284")
+ self.assertEqual(response.status_code, HTTPStatus.OK)
+ content = response.content.decode()
+ ph = r"Question marks for 284 - Seetrichter"
+ phmatch = re.search(ph, content)
+ self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
+
+ def test_fix_openqms(self):
+ response = self.client.get("/cave/openqms/1623-284")
+ self.assertEqual(response.status_code, HTTPStatus.OK)
+ content = response.content.decode()
+ ph = r"Open Leads for 284 - Seetrichter"
+ phmatch = re.search(ph, content)
+ self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
+
+