mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 18:07:08 +00:00
updated tests to cope with moved file in expofiles
This commit is contained in:
@@ -318,8 +318,8 @@ class PageTests(TestCase):
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
|
||||
|
||||
def test_page_expofile_documents(self):
|
||||
# this gets an empty page as the database has not been loaded
|
||||
response = self.client.get("/expofiles/documents")
|
||||
# this gets a real page as it is looking at the filesystem
|
||||
response = self.client.get("/expofiles/documents/ropes")
|
||||
if response.status_code != HTTPStatus.OK:
|
||||
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
||||
if response.status_code != HTTPStatus.FOUND:
|
||||
@@ -330,8 +330,8 @@ class PageTests(TestCase):
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
|
||||
|
||||
def test_page_expofile_documents_slash(self):
|
||||
# this gets an empty page as the database has not been loaded
|
||||
response = self.client.get("/expofiles/documents/")
|
||||
# this gets a real page as it is looking at the filesystem
|
||||
response = self.client.get("/expofiles/documents/ropes/")
|
||||
if response.status_code != HTTPStatus.OK:
|
||||
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
||||
if response.status_code != HTTPStatus.FOUND:
|
||||
|
||||
Reference in New Issue
Block a user