summaryrefslogtreecommitdiffstats
path: root/core/TESTS/test_caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-04-06 00:57:19 +0100
committerPhilip Sargent <philip.sargent@gmail.com>2023-04-06 00:57:19 +0100
commit116cfc7c6e5da0522ce301a89386b37efac5dfe5 (patch)
treefbeb21bff75c5aab18f95b14f5b7b2a89edef722 /core/TESTS/test_caves.py
parentf15555a3bda2afbb5860cb303405cf5fcd51ea45 (diff)
downloadtroggle-116cfc7c6e5da0522ce301a89386b37efac5dfe5.tar.gz
troggle-116cfc7c6e5da0522ce301a89386b37efac5dfe5.tar.bz2
troggle-116cfc7c6e5da0522ce301a89386b37efac5dfe5.zip
bad tests.
Diffstat (limited to 'core/TESTS/test_caves.py')
-rw-r--r--core/TESTS/test_caves.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/core/TESTS/test_caves.py b/core/TESTS/test_caves.py
index d6e8bc7..c0a2e9c 100644
--- a/core/TESTS/test_caves.py
+++ b/core/TESTS/test_caves.py
@@ -189,16 +189,7 @@ class FixturePageTests(TestCase):
# f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
-
- def test_fix_cavehtml284(self):
- response = self.client.get("/1623/284/284.html")
- self.assertEqual(response.status_code, HTTPStatus.OK)
- content = response.content.decode()
- ph = r"A 25m long (22m deep) resurgence in Altausee"
- phmatch = re.search(ph, content)
- with open('_cave_fix_cavehtml284.html', 'w') as f:
- f.write(content)
- self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
+# Although the Cave object exists, it looks like we get a bad slug error when trying to get a QM page.
# def test_fix_qms(self):
# response = self.client.get("/cave/qms/1623-284")