From 6a18511dd0aaa514ef480cc626f60765b76d58dd Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 18 Mar 2022 20:00:15 +0000 Subject: Fixing URLs for cave descriptions --- core/TESTS/tests_caves.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/TESTS/tests_caves.py') 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() -- cgit v1.2.3