From 7a95c6478c448f7bd61c93a3db16cb72936fcc30 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 14 Jun 2025 20:55:53 +0300 Subject: updated tests to cope with moved file in expofiles --- core/TESTS/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index 57c15ba..0b9cb3c 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -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: -- cgit v1.2.3