Merge pull request #2128 from GNS3/fix/3393

Update requirements.txt
pull/2133/head
Jeremy Grossmann 2 years ago committed by GitHub
commit 67e42f9353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,8 @@
-rrequirements.txt -rrequirements.txt
pytest==7.0.1; python_version < '3.7' # last version to support Python 3.6
pytest==7.1.3; python_version >= '3.7' pytest==7.1.3; python_version >= '3.7'
pytest==7.0.1; python_version < '3.7' # v7.0.1 is the last version to support Python 3.6
flake8==5.0.4 flake8==5.0.4
pytest-timeout==2.1.0 pytest-timeout==2.1.0
pytest-aiohttp==0.3.0; python_version < '3.7' # last version to support Python 3.6
pytest-aiohttp==1.0.4; python_version >= '3.7' pytest-aiohttp==1.0.4; python_version >= '3.7'
pytest-aiohttp==0.3.0; python_version < '3.7' # last version to support Python 3.6

@ -1,12 +1,15 @@
jsonschema==3.2.0 jsonschema>=4.16.0,<4.17; python_version >= '3.7'
aiohttp==3.8.1 jsonschema==3.2.0; python_version < '3.7' # v3.2.0 is the last version to support Python 3.6
aiohttp-cors==0.7.0 aiohttp>=3.8.3,<3.9
aiofiles==0.8.0 aiohttp-cors>=0.7.0,<0.8
Jinja2==3.0.3 aiofiles>=22.1.0,<22.2; python_version >= '3.7'
sentry-sdk==1.9.10 aiofiles==0.8.0; python_version < '3.7' # v0.8.0 is the last version to support Python 3.6
psutil==5.9.2 Jinja2>=3.1.2,<3.2; python_version >= '3.7'
async-timeout==4.0.2 Jinja2==3.0.3; python_version < '3.7' # v3.0.3 is the last version to support Python 3.6
distro==1.7.0 sentry-sdk==1.9.10,<1.10
py-cpuinfo==8.0.0 psutil>=5.9.2,<5.10
setuptools==60.6.0; python_version >= '3.7' # don't upgrade because of https://github.com/pypa/setuptools/issues/3084 async-timeout>=4.0.2,<4.1
setuptools==59.6.0; python_version < '3.7' # v59.7.0 dropped support for Python 3.6 distro>=1.7.0
py-cpuinfo>=8.0.0,<8.1
setuptools>=60.8.1; python_version >= '3.7'
setuptools==59.6.0; python_version < '3.7' # v59.6.0 is the last version to support Python 3.6

@ -185,12 +185,14 @@ async def test_qemu_update(compute_api, vm, free_console_port, fake_qemu_vm):
"hdb_disk_image": "linux载.img" "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) with patch("gns3server.compute.qemu.qemu_vm.QemuVM.updated") as mock:
assert response.status == 200 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.json["name"] == "test" assert response.status == 200
assert response.json["console"] == free_console_port assert response.json["name"] == "test"
assert response.json["hdb_disk_image"] == "linux载.img" assert response.json["console"] == free_console_port
assert response.json["ram"] == 1024 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): async def test_qemu_nio_create_udp(compute_api, vm):

Loading…
Cancel
Save