summaryrefslogtreecommitdiffstats
path: root/core/TESTS
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-22 18:14:00 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-22 18:14:00 +0000
commita63f04d194709fae8022dda5ae2bdd9ac4e65be5 (patch)
treed1bae39d0ea2c3baf76f39eba4d2bc698978092c /core/TESTS
parent80c19864ad8d86ee4d48aa3413c94ecba171a72d (diff)
downloadtroggle-a63f04d194709fae8022dda5ae2bdd9ac4e65be5.tar.gz
troggle-a63f04d194709fae8022dda5ae2bdd9ac4e65be5.tar.bz2
troggle-a63f04d194709fae8022dda5ae2bdd9ac4e65be5.zip
fix tests
Diffstat (limited to 'core/TESTS')
-rw-r--r--core/TESTS/tests.py6
1 files changed, 3 insertions, 3 deletions
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"<tr><th>Survex Station</th><th>x</th><th>y</th>"
+ ph = "<tr><th>Survex Station</th><th>x "
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")