2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

fix tests to match code chnages

This commit is contained in:
Philip Sargent 2023-09-01 21:14:19 +03:00
parent 33a08bed4f
commit 98bc6007a5

View File

@ -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: