Attempt to fix running all tests

This commit is contained in:
Eliise 2021-08-16 14:59:48 +00:00
Родитель 6409316564
Коммит 07e543a56f
2 изменённых файлов: 11 добавлений и 4 удалений

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

@ -157,7 +157,7 @@ class DeploymentManifest:
def validate_deployment_manifest(self):
validation_success = True
try:
if self.is_layered_deployment_schema():
if not self.is_layered_deployment_schema():
validation_success = self._validate_deployment_manifest_schema()
validation_success &= self._validate_create_options()
except Exception as err:

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

@ -1,3 +1,5 @@
from iotedgedev.envvars import EnvVars
from iotedgedev.output import Output
import os
import pytest
from .utility import (
@ -5,14 +7,19 @@ from .utility import (
runner_invoke,
)
pytestmark = pytest.mark.unit
pytestmark = pytest.mark.e2e
tests_dir = os.path.join(os.getcwd(), "tests")
test_assets_dir = os.path.join(tests_dir, "assets")
test_file_1 = os.path.join(test_assets_dir, "layered_deployment.template.json")
test_solution_shared_lib_dir = os.path.join(tests_dir, "assets", "test_solution_shared_lib")
@pytest.fixture(scope="module", autouse=True)
def setup_dotenv():
output = Output()
envvars = EnvVars(output)
envvars.set_envvar("MODULES_PATH", "../test_solution_shared_lib/modules")
@pytest.mark.parametrize(
"test_file_name",
[