summaryrefslogtreecommitdiff
path: root/test/test_logger.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-11 09:53:58 +0200
committermathieui <mathieui@mathieui.net>2021-04-11 16:33:53 +0200
commit4cbc0e45063fe65bfcf1578789e92dd7b30c2a6f (patch)
tree34d62708de8a844a2aa5d3d2b26554880a029783 /test/test_logger.py
parent91be567228046171aa12db04d77dcc9189ae57f9 (diff)
downloadpoezio-4cbc0e45063fe65bfcf1578789e92dd7b30c2a6f.tar.gz
poezio-4cbc0e45063fe65bfcf1578789e92dd7b30c2a6f.tar.bz2
poezio-4cbc0e45063fe65bfcf1578789e92dd7b30c2a6f.tar.xz
poezio-4cbc0e45063fe65bfcf1578789e92dd7b30c2a6f.zip
tests: update logger test
Diffstat (limited to 'test/test_logger.py')
-rw-r--r--test/test_logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_logger.py b/test/test_logger.py
index d583733e..a1caad52 100644
--- a/test/test_logger.py
+++ b/test/test_logger.py
@@ -106,6 +106,6 @@ def test_log_and_parse_messages():
assert built_msg2 == 'MR %s 001 <toto>  coucou\n coucou\n' % (msg2_utc.strftime('%Y%m%dT%H:%M:%SZ'))
assert parse_log_lines((built_msg1 + built_msg2).split('\n'), 'user@domain') == [
- {'time': msg1['date'], 'history': True, 'txt': 'coucou', 'nickname': 'toto'},
- {'time': msg2['date'], 'history': True, 'txt': 'coucou\ncoucou', 'nickname': 'toto'},
+ {'time': msg1['date'], 'history': True, 'txt': 'coucou', 'nickname': 'toto', 'type': 'message'},
+ {'time': msg2['date'], 'history': True, 'txt': 'coucou\ncoucou', 'nickname': 'toto', 'type': 'message'},
]