Tests work on cave, person, expedition pages

This commit is contained in:
Philip Sargent
2021-04-18 01:58:24 +01:00
parent eea74406c9
commit e17a21defd
5 changed files with 187 additions and 17 deletions

View File

@@ -158,6 +158,16 @@ class PageTests(TestCase):
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
def test_page_ss(self):
response = self.client.get('/survey_scans/')
self.assertEqual(response.status_code, 200)
ph = r'All Survey scans folders '
content = response.content.decode()
phmatch = re.search(ph, content)
with open('ss-op.html', 'w') as f:
f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
def test_page_admin(self):