mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
parent
b87692acce
commit
5a86277a9f
@ -35,6 +35,8 @@ def test_import_project(async_run, tmpdir, controller):
|
|||||||
topology = {
|
topology = {
|
||||||
"project_id": str(uuid.uuid4()),
|
"project_id": str(uuid.uuid4()),
|
||||||
"name": "test",
|
"name": "test",
|
||||||
|
"auto_open": True,
|
||||||
|
"auto_start": True,
|
||||||
"topology": {
|
"topology": {
|
||||||
},
|
},
|
||||||
"version": "2.0.0"
|
"version": "2.0.0"
|
||||||
@ -67,6 +69,8 @@ def test_import_project(async_run, tmpdir, controller):
|
|||||||
# A new project name is generated when you import twice the same name
|
# A new project name is generated when you import twice the same name
|
||||||
with open(zip_path, "rb") as f:
|
with open(zip_path, "rb") as f:
|
||||||
project = async_run(import_project(controller, str(uuid.uuid4()), f))
|
project = async_run(import_project(controller, str(uuid.uuid4()), f))
|
||||||
|
assert project.auto_open is False
|
||||||
|
assert project.auto_start is False
|
||||||
assert project.name != "test"
|
assert project.name != "test"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user