Skip to content

Commit

Permalink
Fix call counts with motor test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Nov 18, 2024
1 parent 7ee0ff7 commit 9133c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aikido_zen/sinks/tests/motor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ async def test_aggregate_raw_batches_key(db):
async for doc in dogs.aggregate_raw_batches(pipeline=pipeline):
pass

called_with = mock_run_vulnerability_scan.call_args[1]
called_with = mock_run_vulnerability_scan.call_args_list[0][1]
assert called_with["args"][0] == pipeline
assert (
called_with["op"] == "pymongo.collection.Collection.aggregate_raw_batches"
Expand Down

0 comments on commit 9133c1c

Please sign in to comment.