mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 16:51:54 +00:00
test checks that localsettings is not out of step with code too
This commit is contained in:
parent
4b1012cbb4
commit
5a64d9d3d0
@ -64,6 +64,14 @@ class PageTests(TestCase):
|
|||||||
phmatch = re.search(ph, content)
|
phmatch = re.search(ph, content)
|
||||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
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):
|
def test_expoweb_dir(self):
|
||||||
response = self.client.get('/handbook')
|
response = self.client.get('/handbook')
|
||||||
content = response.content.decode()
|
content = response.content.decode()
|
||||||
|
Loading…
Reference in New Issue
Block a user