зеркало из https://github.com/Azure/iotedgedev.git
Attempt to fix running all tests
This commit is contained in:
Родитель
6409316564
Коммит
07e543a56f
|
@ -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",
|
||||
[
|
||||
|
|
Загрузка…
Ссылка в новой задаче