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

Fix tests

This commit is contained in:
ziajka 2018-05-07 15:18:19 +02:00
parent 132c7c8f5b
commit e4436096c2

View File

@ -251,7 +251,7 @@ def test_create_with_empty_extra_hosts(loop, project, manager):
assert len([ e for e in called_kwargs["data"]["Env"] if "GNS3_EXTRA_HOSTS" in e]) == 0
def test_create_with_project_variables(loop, project_with_variables, manager):
def test_create_with_project_variables(loop, project, manager):
response = {
"Id": "e90e34656806",
"Warnings": []
@ -269,10 +269,9 @@ def test_create_with_project_variables(loop, project_with_variables, manager):
called_kwargs = mock.call_args[1]
assert "VAR1=" in called_kwargs["data"]["Env"]
assert "VAR2=VAL1" in called_kwargs["data"]["Env"]
assert vm._extra_hosts == extra_hosts
project.variables = None
def test_create_start_cmd(loop, project, manager):
response = {