From 0a76acd6649c9964ae3f1c31b93aaa9cfab9db91 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 5 Apr 2023 12:46:10 +0100 Subject: [PATCH] test checked --- core/TESTS/test_parsers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/TESTS/test_parsers.py b/core/TESTS/test_parsers.py index 89e38c5..2d951bc 100644 --- a/core/TESTS/test_parsers.py +++ b/core/TESTS/test_parsers.py @@ -103,12 +103,12 @@ class ImportTest(TestCase): self.assertNotIn(e, messages) def test_aliases(self): - # Needs another test with test data + # Problem: '' empty string appears as valid alias for David Smartarse response = self.client.get(f"/aliases/{TEST_YEAR}") self.assertEqual(response.status_code, HTTPStatus.OK) content = response.content.decode() - with open('_test_response.html', 'w') as f: - f.write(content) + # with open('_test_response.html', 'w') as f: + # f.write(content) ph = f"'fsmartarse'" phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")