summaryrefslogtreecommitdiffstats
path: root/core/TESTS/tests_caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-03-18 20:00:15 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2022-03-18 20:00:15 +0000
commit6a18511dd0aaa514ef480cc626f60765b76d58dd (patch)
treec0f107e7e29818248284649f7cc26f62b9076a4b /core/TESTS/tests_caves.py
parent6f32364675fa413db942486d8efccd4d0990e274 (diff)
downloadtroggle-6a18511dd0aaa514ef480cc626f60765b76d58dd.tar.gz
troggle-6a18511dd0aaa514ef480cc626f60765b76d58dd.tar.bz2
troggle-6a18511dd0aaa514ef480cc626f60765b76d58dd.zip
Fixing URLs for cave descriptions
Diffstat (limited to 'core/TESTS/tests_caves.py')
-rw-r--r--core/TESTS/tests_caves.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/TESTS/tests_caves.py b/core/TESTS/tests_caves.py
index 13152f7..dd8f1df 100644
--- a/core/TESTS/tests_caves.py
+++ b/core/TESTS/tests_caves.py
@@ -37,7 +37,7 @@ class FixtureTests(TestCase):
def test_fix_cave_loaded115(self):
c = Cave.objects.get(kataster_number='115')
self.assertEqual(str(c.description_file), "1623/115.htm")
- self.assertEqual(str(c.url), "1623/115.htm")
+ self.assertEqual(str(c.url), "1623/115.url") # intentional
self.assertEqual(str(c.filename), "1623-115.html")
# c.area is a 'ManyRelatedManager' object and not iterable
@@ -135,7 +135,7 @@ class FixturePageTests(TestCase):
def test_fix_cave_url115(self):
ph = self.ph
- response = self.client.get('/1623/115.htm')
+ response = self.client.get('/1623/115.url') # yes this is intentional, see the inserted data above & fixture
self.assertEqual(response.status_code, 200)
content = response.content.decode()