mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Fix tests
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user