X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ice_validator%2Ftests%2Ftest_all_referenced_resources_exists.py;fp=ice_validator%2Ftests%2Ftest_all_referenced_resources_exists.py;h=e77f4f86e215f4c1f4f3601bb35258d76d2e02a9;hb=f5edc06be0d8bedeb0904b348ba5e3e67c74f186;hp=39247bfa5e04d554dbbc4f78057e72335422a4b7;hpb=1af0d577ab6d8c431ae1322657c50efd5e0a1a93;p=vvp%2Fvalidation-scripts.git diff --git a/ice_validator/tests/test_all_referenced_resources_exists.py b/ice_validator/tests/test_all_referenced_resources_exists.py index 39247bf..e77f4f8 100644 --- a/ice_validator/tests/test_all_referenced_resources_exists.py +++ b/ice_validator/tests/test_all_referenced_resources_exists.py @@ -38,24 +38,24 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''test_all_referenced_resources_exists -''' +"""test_all_referenced_resources_exists +""" import pytest import yaml from .utils.nested_iterables import find_all_get_resource_in_yml -VERSION = '1.0.0' +VERSION = "1.0.0" # pylint: disable=invalid-name def test_all_referenced_resources_exists(yaml_file): - ''' + """ Check that all resources referenced by get_resource actually exists in all yaml files - ''' + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -63,7 +63,7 @@ def test_all_referenced_resources_exists(yaml_file): if "resources" not in yml: pytest.skip("No resources specified in the yaml file") - resource_ids = yml['resources'].keys() + resource_ids = yml["resources"].keys() referenced_resource_ids = find_all_get_resource_in_yml(yml) missing_referenced_resources = set() @@ -71,6 +71,6 @@ def test_all_referenced_resources_exists(yaml_file): if referenced_resource_id not in resource_ids: missing_referenced_resources.add(referenced_resource_id) - assert not missing_referenced_resources, ( - 'missing referenced resources %s' % list( - missing_referenced_resources)) + assert not missing_referenced_resources, "missing referenced resources %s" % list( + missing_referenced_resources + )