From e4436096c229d401aa43ea3e06dbecf93e2267c1 Mon Sep 17 00:00:00 2001 From: ziajka Date: Mon, 7 May 2018 15:18:19 +0200 Subject: [PATCH] Fix tests --- tests/compute/docker/test_docker_vm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/compute/docker/test_docker_vm.py b/tests/compute/docker/test_docker_vm.py index 8e2075c5..1fb6012b 100644 --- a/tests/compute/docker/test_docker_vm.py +++ b/tests/compute/docker/test_docker_vm.py @@ -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 = {