diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-06-14 20:55:53 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-06-14 20:55:53 +0300 |
commit | 7a95c6478c448f7bd61c93a3db16cb72936fcc30 (patch) | |
tree | d0333a05e9d80920b6f76d056f6d8c5582f8e5d5 /core | |
parent | 40fb066e2be579f07e8219bfa2306d66278b4b00 (diff) | |
download | troggle-7a95c6478c448f7bd61c93a3db16cb72936fcc30.tar.gz troggle-7a95c6478c448f7bd61c93a3db16cb72936fcc30.tar.bz2 troggle-7a95c6478c448f7bd61c93a3db16cb72936fcc30.zip |
updated tests to cope with moved file in expofiles
Diffstat (limited to 'core')
-rw-r--r-- | core/TESTS/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
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: |