X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fconstants.py;h=5e7c24422d6eaee1d19cb570ee20e88193260848;hb=9e4e6f049fa7d5cce8db61dfa2ebebc55f91c1d8;hp=75c97c765075a1ab9edf659f3d4ccc58870115a3;hpb=8e6892b8fd6a2e28915c903baf1544c455dc881a;p=functest.git diff --git a/functest/utils/constants.py b/functest/utils/constants.py index 75c97c765..5e7c24422 100644 --- a/functest/utils/constants.py +++ b/functest/utils/constants.py @@ -1,17 +1,11 @@ #!/usr/bin/env python -import six +# pylint: disable=missing-docstring -from functest.utils import config -from functest.utils import env +import pkg_resources +from xtesting.utils import constants +CONFIG_FUNCTEST_YAML = pkg_resources.resource_filename( + 'functest', 'ci/config_functest.yaml') -class Constants(object): - def __init__(self): - for attr_n, attr_v in six.iteritems(config.CONF.__dict__): - self.__setattr__(attr_n, attr_v) - for env_n, env_v in six.iteritems(env.ENV.__dict__): - self.__setattr__(env_n, env_v) - - -CONST = Constants() +ENV_FILE = constants.ENV_FILE