From 45fe2189f9fbc37cb4b32bffc306859ddd38033f Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 12 Apr 2026 20:53:28 +0800 Subject: [PATCH] Fix tests --- tests/test_compute_manager.py | 2 +- tests/test_http_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_compute_manager.py b/tests/test_compute_manager.py index 4ea4d21d..ad484756 100644 --- a/tests/test_compute_manager.py +++ b/tests/test_compute_manager.py @@ -59,7 +59,7 @@ def test_deleteCompute(controller): cm.deleteCompute("test") assert "test" not in cm._computes assert callback_delete.called - controller._http_client.createHTTPQuery.assert_called_with("DELETE", "/computes/test") + controller._http_client.createHTTPQuery.assert_called_with("DELETE", "/computes/test", None) def test_listComputesCallback(): diff --git a/tests/test_http_client.py b/tests/test_http_client.py index 980a2200..4f6fa140 100644 --- a/tests/test_http_client.py +++ b/tests/test_http_client.py @@ -113,7 +113,7 @@ def test_post_not_connected(http_client, http_request, network_manager, response http_client._connected = False callback = unittest.mock.MagicMock() - http_client.createHTTPQuery("POST", "/test", callback, context={"query_id": 42}) + http_client.createHTTPQuery("POST", "/test", callback, context={"toto": 42}) args, kwargs = network_manager.sendCustomRequest.call_args assert args[0] == http_request