1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix tests

This commit is contained in:
Julien Duponchelle 2016-07-22 13:24:44 +02:00
parent d58bcddbcc
commit e6831c25e2
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 4 additions and 1 deletions

View File

@ -68,6 +68,9 @@ def test_import_project(async_run, tmpdir, controller):
def test_import_upgrade(async_run, tmpdir, controller):
"""
Topology made for previous GNS3 version are upgraded during the process
"""
project_id = str(uuid.uuid4())
topology = {

View File

@ -207,7 +207,7 @@ def test_write_file(http_controller, tmpdir, project):
def test_import(http_controller, tmpdir, controller):
with zipfile.ZipFile(str(tmpdir / "test.zip"), 'w') as myzip:
myzip.writestr("project.gns3", b'{"version": "2.0.0", "name": "test"}')
myzip.writestr("project.gns3", b'{"project_id": "c6992992-ac72-47dc-833b-54aa334bcd05", "version": "2.0.0", "name": "test"}')
myzip.writestr("demo", b"hello")
project_id = str(uuid.uuid4())