From e6eeb3971b09a1b9cff20ed35bcda326fa97513f Mon Sep 17 00:00:00 2001 From: Enrico Zini Date: Wed, 2 Mar 2022 14:45:12 +0100 Subject: [PATCH] Fixed test that fails after more logging was added in removals. Refs #286 --- python/tests/test_arki_check.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/tests/test_arki_check.py b/python/tests/test_arki_check.py index 702e4475..8e256103 100644 --- a/python/tests/test_arki_check.py +++ b/python/tests/test_arki_check.py @@ -583,10 +583,13 @@ def test_remove(self): with LogCapture() as log: out = self.call_output_success("testenv/testds", "--remove=testenv/remove.md", "--verbose", "--fix") - self.assertEqual(len(log), 1) self.assertEqual(log[0].name, "arkimet") self.assertEqual(log[0].levelname, "INFO") - self.assertEqual(log[0].getMessage(), "testds: 1 data marked as deleted") + self.assertEqual(log[0].getMessage(), "testds: 2007/07-08.grib: 1 data marked as deleted") + self.assertEqual(log[1].name, "arkimet") + self.assertEqual(log[1].levelname, "INFO") + self.assertEqual(log[1].getMessage(), "testds: 1 data marked as deleted") + self.assertEqual(log[2:], []) self.assertEqual(out, "") self.assertQueryResults(env, imported, [1, 2])