summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/TESTS/test_parsers.py6
1 files 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 + "'")