From 5c82deb39771c5ae7e1b28ccffe21d619bf1a88d Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Tue, 17 Sep 2024 14:19:00 +0200 Subject: [PATCH] fix: [logarchive] fix test --- tests/test_parsers_logarchive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_parsers_logarchive.py b/tests/test_parsers_logarchive.py index 9cf6213..17b9c8e 100644 --- a/tests/test_parsers_logarchive.py +++ b/tests/test_parsers_logarchive.py @@ -42,7 +42,7 @@ def test_convert_unifiedlog_time_to_datetime(self): result = LogarchiveParser.convert_unifiedlog_time_to_datetime(input).isoformat() self.assertEqual(result, expected_output) - def test_convert_entry_to_un(self): + def test_convert_entry_to_unified(self): input = { 'timezoneName': '', 'messageType': 'Default', @@ -99,10 +99,11 @@ def test_convert_entry_to_un(self): 'pid': 0, 'senderProgramCounter': 6084, 'parentActivityIdentifier': 0, - 'datetime': '2023-05-24 13:03:28.908085-0700', + 'datetime': '2023-05-24T13:03:28.908085-07:00', 'timestamp': 1684958608.908085 } result = LogarchiveParser.convert_entry_to_unifiedlog_format(input) + self.maxDiff = None self.assertDictEqual(result, expected_output)