2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

test checks that localsettings is not out of step with code too

This commit is contained in:
Philip Sargent 2022-04-07 01:20:44 +03:00
parent 4b1012cbb4
commit 5a64d9d3d0

View File

@ -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()