diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-09-01 21:14:19 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-09-01 21:14:19 +0300 |
commit | 98bc6007a598514c012b42b053efd034945c1427 (patch) | |
tree | aeb394b308d6c03ae63caf7d54f28ada89ab1438 /core/TESTS/test_parsers.py | |
parent | 33a08bed4fa677cfaafa45071b842109d1b26d6c (diff) | |
download | troggle-98bc6007a598514c012b42b053efd034945c1427.tar.gz troggle-98bc6007a598514c012b42b053efd034945c1427.tar.bz2 troggle-98bc6007a598514c012b42b053efd034945c1427.zip |
fix tests to match code chnages
Diffstat (limited to 'core/TESTS/test_parsers.py')
-rw-r--r-- | core/TESTS/test_parsers.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/TESTS/test_parsers.py b/core/TESTS/test_parsers.py index f72e9ea..301e387 100644 --- a/core/TESTS/test_parsers.py +++ b/core/TESTS/test_parsers.py @@ -87,15 +87,17 @@ class ImportTest(TestCase): print(f"'{i.message}'") expected = [ - " ! - 1986 EXCEPTION: 'Kurt Keinnamen' (Kurt Keinnamen) in entry tid='1986_s02' for this year.", + " ! - 1986 No name match for: 'Kurt Keinnamen' in entry tid='1986-07-27c' for this year.", ] not_expected = [ - " ! - 1986 EXCEPTION:: 'Dave Smartarse' (Dave Smartarse) in entry tid='1986_s01' for this year.", - " ! - 1986 Warning: logentry: surface - stupour - no expo member author for entry '1986_s03'", - " ! - 1986 Warning: logentry: 123 - wave 2 - no expo member author for entry '1986_s02'", + " ! - 1986 EXCEPTION:: 'Dave Smartarse' (Dave Smartarse) in entry tid='1986-07-27a' for this year.", + " ! - 1986 Warning: logentry: surface - stupour - no expo member author for entry '1986-07-31a'", + " ! - 1986 Warning: logentry: 123 - wave 2 - no expo member author for entry '1986-08-01a'", ] - + with open('_test_response.txt', 'w') as f: + for m in messages: + f.write(m) for e in expected: self.assertIn(e, messages) for e in not_expected: |