From 5a64d9d3d069fe0f9b629bc4bc608c6576a442ed Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@klebos.com> Date: Thu, 7 Apr 2022 01:20:44 +0300 Subject: [PATCH] test checks that localsettings is not out of step with code too --- core/TESTS/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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()