Skip to content

Commit

Permalink
test_spool: Use filter to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danghai committed Nov 29, 2023
1 parent ef7f272 commit 5eba41f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kcidb/monitor/test_spool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -24,7 +24,8 @@ 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)

0 comments on commit 5eba41f

Please sign in to comment.