mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
fix tests to match code chnages
This commit is contained in:
parent
33a08bed4f
commit
98bc6007a5
@ -87,15 +87,17 @@ class ImportTest(TestCase):
|
|||||||
print(f"'{i.message}'")
|
print(f"'{i.message}'")
|
||||||
|
|
||||||
expected = [
|
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 = [
|
not_expected = [
|
||||||
" ! - 1986 EXCEPTION:: 'Dave Smartarse' (Dave Smartarse) in entry tid='1986_s01' for this year.",
|
" ! - 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_s03'",
|
" ! - 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_s02'",
|
" ! - 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:
|
for e in expected:
|
||||||
self.assertIn(e, messages)
|
self.assertIn(e, messages)
|
||||||
for e in not_expected:
|
for e in not_expected:
|
||||||
|
Loading…
Reference in New Issue
Block a user