summaryrefslogtreecommitdiffstats
path: root/core/TESTS/tests.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-04-07 01:20:44 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-04-07 01:20:44 +0300
commit5a64d9d3d069fe0f9b629bc4bc608c6576a442ed (patch)
treea5fa0b1f767af3497e6d11c8e2dec23a7688b1fb /core/TESTS/tests.py
parent4b1012cbb442109299ab7abe37feaba1a2687897 (diff)
downloadtroggle-5a64d9d3d069fe0f9b629bc4bc608c6576a442ed.tar.gz
troggle-5a64d9d3d069fe0f9b629bc4bc608c6576a442ed.tar.bz2
troggle-5a64d9d3d069fe0f9b629bc4bc608c6576a442ed.zip
test checks that localsettings is not out of step with code too
Diffstat (limited to 'core/TESTS/tests.py')
-rw-r--r--core/TESTS/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index 64dda9b..fa539d9 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -64,6 +64,14 @@ class PageTests(TestCase):
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
+ def test_expoweb_paths(self):
+ response = self.client.get('/pathsreport')
+ self.assertEqual(response.status_code, 200)
+ content = response.content.decode()
+ ph = r'This report is generated from'
+ phmatch = re.search(ph, content)
+ self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
+
def test_expoweb_dir(self):
response = self.client.get('/handbook')
content = response.content.decode()