From 850e87b97a6a563e20285e419c5df624080728f9 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 21 Oct 2023 12:39:02 +0300 Subject: [PATCH] fix because of format change --- core/TESTS/test_caves.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/TESTS/test_caves.py b/core/TESTS/test_caves.py index 26bd0cc..6704cd8 100644 --- a/core/TESTS/test_caves.py +++ b/core/TESTS/test_caves.py @@ -180,10 +180,10 @@ class FixturePageTests(TestCase): response = self.client.get("/caves") self.assertEqual(response.status_code, HTTPStatus.OK) content = response.content.decode() - ph = r"284 Seetrichter" + ph = r"284 Seetrichter" phmatch = re.search(ph, content) - # with open('_cave_fix_caves.html', 'w') as f: - # f.write(content) + with open('_cave_fix_caves.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.