Skip to content

Commit

Permalink
Fixed test that fails after more logging was added in removals. Refs #…
Browse files Browse the repository at this point in the history
  • Loading branch information
spanezz committed Mar 2, 2022
1 parent 0e5646e commit e6eeb39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/tests/test_arki_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit e6eeb39

Please sign in to comment.