diff --git a/tests/test_iotedgedev_layereddeployments.py b/tests/test_iotedgedev_layereddeployments.py index 340ac36..0ad5f92 100644 --- a/tests/test_iotedgedev_layereddeployments.py +++ b/tests/test_iotedgedev_layereddeployments.py @@ -5,11 +5,17 @@ from .utility import ( get_platform_type, runner_invoke, ) +from iotedgedev.envvars import EnvVars +from iotedgedev.output import Output + pytestmark = pytest.mark.e2e test_solution_shared_lib_dir = os.path.join(os.getcwd(), "tests", "assets", "test_solution_shared_lib") +output = Output() +envvars = EnvVars(output) +envvars.load() def test_build_and_push(): os.chdir(test_solution_shared_lib_dir) @@ -36,4 +42,4 @@ def test_build_and_push_with_no_modules(): set_property = content["content"]["modulesContent"]["exampleModule"]["properties.desired"]["foo"] assert 'ERROR' not in result.output - assert 'bar-1.0' == set_property + assert 'bar-${envvars.EDGE_RUNTIME_VERSION}' == set_property