From 4cbc0e45063fe65bfcf1578789e92dd7b30c2a6f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 11 Apr 2021 09:53:58 +0200 Subject: tests: update logger test --- test/test_logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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  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'}, ] -- cgit v1.2.3