diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-04-05 12:46:10 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-04-05 12:46:10 +0100 |
commit | 0a76acd6649c9964ae3f1c31b93aaa9cfab9db91 (patch) | |
tree | cfeae6ad798e7c8330de0baec64cc2ddc3506270 | |
parent | 4d8cb82ef944e75ea8dfcd65b72733d48cd241fd (diff) | |
download | troggle-0a76acd6649c9964ae3f1c31b93aaa9cfab9db91.tar.gz troggle-0a76acd6649c9964ae3f1c31b93aaa9cfab9db91.tar.bz2 troggle-0a76acd6649c9964ae3f1c31b93aaa9cfab9db91.zip |
test checked
-rw-r--r-- | core/TESTS/test_parsers.py | 6 |
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 + "'") |