update unit test layered deployment runtime version

This commit is contained in:
cindydeng1998 2021-08-18 15:08:22 -07:00
Родитель dc45d0be4c
Коммит 92889e3242
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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