From 3c34bc88d776804f7610453c5bd2dce3237e41b6 Mon Sep 17 00:00:00 2001 From: dang hai Date: Tue, 28 Nov 2023 18:55:33 -0500 Subject: [PATCH] test_spool: Use filter to avoid warning --- kcidb/monitor/test_spool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcidb/monitor/test_spool.py b/kcidb/monitor/test_spool.py index ee817c96..69e410f9 100644 --- a/kcidb/monitor/test_spool.py +++ b/kcidb/monitor/test_spool.py @@ -8,7 +8,7 @@ def test_wipe_main(): """Check kcidb-spool-wipe works""" datetime_str = "2020-09-28 15:42:18.170439+03:00" - datetime_value = dateutil.parser.isoparse(datetime_str) + datetime = dateutil.parser.isoparse(datetime_str) argv = [ "kcidb.monitor.spool.wipe_main", "-p", "project", "-c", "collection", @@ -24,7 +24,7 @@ def test_wipe_main(): return_value=client) as Client: status = function() Client.assert_called_once_with("collection", project="project") - client.wipe.assert_called_once_with(until={repr(datetime_value)}) + client.wipe.assert_called_once_with(filter=[("until", "==", repr(datetime))]) return status """) assert_executes("", *argv, driver_source=driver_source)