From dc3379c1862219f02dbb697b201ada7f2027e808 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 4 May 2021 15:48:11 +0100 Subject: fix end slash issue --- core/TESTS/tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/TESTS/tests.py') diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index b8340c2..7f254c8 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -401,6 +401,16 @@ class PageTests(TestCase): self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'") def test_page_dwgallfiles_empty(self): + # this gets an empty page as the database has not been loaded + response = self.client.get('/dwgfiles') + self.assertEqual(response.status_code, 200) + content = response.content.decode() + for ph in [ r'All Tunnel and Therion files', + r'Scans folderScan filesFrames']: + phmatch = re.search(ph, content) + self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'") + + def test_page_dwgallfiles_empty_slash(self): # this gets an empty page as the database has not been loaded response = self.client.get('/dwgfiles/') self.assertEqual(response.status_code, 200) -- cgit v1.2.3