Upgrade to aiohttp 3.8.3

This commit is contained in:
grossmj 2022-10-12 21:40:23 +08:00
parent 78b2b93540
commit 9ff302592c
2 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
jsonschema==3.2.0
aiohttp==3.8.1
aiohttp==3.8.3
aiohttp-cors==0.7.0
aiofiles==22.1.0; python_version >= '3.7'
aiofiles==0.8.0; python_version < '3.7' # v0.8.0 is the last version to support Python 3.6

View File

@ -185,12 +185,14 @@ async def test_qemu_update(compute_api, vm, free_console_port, fake_qemu_vm):
"hdb_disk_image": "linux载.img"
}
response = await compute_api.put("/projects/{project_id}/qemu/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]), params)
assert response.status == 200
assert response.json["name"] == "test"
assert response.json["console"] == free_console_port
assert response.json["hdb_disk_image"] == "linux载.img"
assert response.json["ram"] == 1024
with patch("gns3server.compute.qemu.qemu_vm.QemuVM.updated") as mock:
response = await compute_api.put("/projects/{project_id}/qemu/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]), params)
assert response.status == 200
assert response.json["name"] == "test"
assert response.json["console"] == free_console_port
assert response.json["hdb_disk_image"] == "linux载.img"
assert response.json["ram"] == 1024
assert mock.called
async def test_qemu_nio_create_udp(compute_api, vm):