From 06e4518b5cc288a1eca292ea89a22c2a0bba8c1e Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 19 Sep 2024 23:36:39 +0200 Subject: [PATCH] fix: mock.called_once doesn't exist --- tests/api/test_p2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_p2p.py b/tests/api/test_p2p.py index ee352319d..5016162e5 100644 --- a/tests/api/test_p2p.py +++ b/tests/api/test_p2p.py @@ -97,4 +97,4 @@ async def test_post_message_sync(ccn_api_client, mocker): assert pub_status["failed"] == [] # Check that we cleaned up the queue - assert mocked_queue.delete.called_once + assert mocked_queue.delete.assert_called_once()