mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 04:27:16 +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 + "'")
|
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
|
||||||
|
|
||||||
def test_page_expofile_documents(self):
|
def test_page_expofile_documents(self):
|
||||||
# this gets an empty page as the database has not been loaded
|
# this gets a real page as it is looking at the filesystem
|
||||||
response = self.client.get("/expofiles/documents")
|
response = self.client.get("/expofiles/documents/ropes")
|
||||||
if response.status_code != HTTPStatus.OK:
|
if response.status_code != HTTPStatus.OK:
|
||||||
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
||||||
if 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 + "'")
|
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
|
||||||
|
|
||||||
def test_page_expofile_documents_slash(self):
|
def test_page_expofile_documents_slash(self):
|
||||||
# this gets an empty page as the database has not been loaded
|
# this gets a real page as it is looking at the filesystem
|
||||||
response = self.client.get("/expofiles/documents/")
|
response = self.client.get("/expofiles/documents/ropes/")
|
||||||
if response.status_code != HTTPStatus.OK:
|
if response.status_code != HTTPStatus.OK:
|
||||||
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
||||||
if response.status_code != HTTPStatus.FOUND:
|
if response.status_code != HTTPStatus.FOUND:
|
||||||
|
|||||||
Reference in New Issue
Block a user