X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ice_validator%2Fapp_tests%2Ftest_app_config.py;h=a021b538d81e75f3d1581e3fac0843713690f1f4;hb=b395eb5bb6c79558202a3d414982a56fac7c9e1d;hp=223006fccd63e49af35d4b557d51dc1572f1442d;hpb=8540eb59f7e7f8ff2043a8eaf7edfc255a60874a;p=vvp%2Fvalidation-scripts.git diff --git a/ice_validator/app_tests/test_app_config.py b/ice_validator/app_tests/test_app_config.py index 223006f..a021b53 100644 --- a/ice_validator/app_tests/test_app_config.py +++ b/ice_validator/app_tests/test_app_config.py @@ -62,7 +62,7 @@ settings: # noinspection PyShadowingNames @pytest.fixture(scope="module") def config(): - return vvp.Config(yaml.load(StringIO(DEFAULT_CONFIG))) + return vvp.Config(yaml.safe_load(StringIO(DEFAULT_CONFIG))) def test_app_name(config): @@ -114,7 +114,7 @@ settings: def test_missing_category_fields(): - settings = yaml.load(StringIO(MISSING_CATEGORY_FIELD)) + settings = yaml.safe_load(StringIO(MISSING_CATEGORY_FIELD)) with pytest.raises(RuntimeError) as e: vvp.Config(settings) assert "Missing: name" in str(e)