From a63f04d194709fae8022dda5ae2bdd9ac4e65be5 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 22 Nov 2023 18:14:00 +0000 Subject: fix tests --- core/TESTS/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/TESTS/tests.py') diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index c93e35e..d0cce71 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -168,7 +168,7 @@ class PageTests(TestCase): response = self.client.get("/1623/115.htm") self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) content = response.content.decode() - ph = r"Page not found 1623/115.htm" + ph = r"Page not found 1623//115/115.htm" phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") @@ -515,12 +515,12 @@ class PageTests(TestCase): phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") - def test_eastings(self): + def test_stations(self): # Needs another test with test data response = self.client.get("/stations") self.assertEqual(response.status_code, HTTPStatus.OK) content = response.content.decode() - ph = r"Survex Stationxy" + ph = "Survex Stationx " phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") -- cgit v1.2.3