Fix tests

This commit is contained in:
grossmj
2026-04-12 20:53:28 +08:00
parent 852ebddf3b
commit 45fe2189f9
2 changed files with 2 additions and 2 deletions

View File

@@ -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():

View File

@@ -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