2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

fix because of format change

This commit is contained in:
Philip Sargent 2023-10-21 12:39:02 +03:00
parent dfd8f4a453
commit 850e87b97a

View File

@ -180,10 +180,10 @@ class FixturePageTests(TestCase):
response = self.client.get("/caves") response = self.client.get("/caves")
self.assertEqual(response.status_code, HTTPStatus.OK) self.assertEqual(response.status_code, HTTPStatus.OK)
content = response.content.decode() content = response.content.decode()
ph = r"284 Seetrichter" ph = r"284 <em>Seetrichter</em>"
phmatch = re.search(ph, content) phmatch = re.search(ph, content)
# with open('_cave_fix_caves.html', 'w') as f: with open('_cave_fix_caves.html', 'w') as f:
# f.write(content) f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") 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. # Although the Cave object exists, it looks like we get a bad slug error when trying to get a QM page.