1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fix compute auto idlepc test.

This commit is contained in:
grossmj 2017-11-23 23:28:52 +07:00
parent e54d574e47
commit 851fcf5c71

View File

@ -232,10 +232,11 @@ def test_compute_autoidlepc(http_controller, controller):
params = { params = {
"platform": "c7200", "platform": "c7200",
"image": "test.bin" "image": "test.bin",
"ram": 512
} }
with asyncio_patch("gns3server.controller.Controller.autoidlepc", return_value={"idlepc": "0x606de20c"}) as mock: with asyncio_patch("gns3server.controller.Controller.autoidlepc", return_value={"idlepc": "0x606de20c"}) as mock:
response = http_controller.post("/computes/my_compute_id/autoidlepc", params, example=True) response = http_controller.post("/computes/my_compute_id/auto_idlepc", params, example=True)
assert mock.called assert mock.called
assert response.status == 200 assert response.status == 200