From 98bc6007a598514c012b42b053efd034945c1427 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 1 Sep 2023 21:14:19 +0300 Subject: [PATCH] fix tests to match code chnages --- core/TESTS/test_parsers.py | 12 +++++++----- 1 file 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: