X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fconstants.py;h=5e7c24422d6eaee1d19cb570ee20e88193260848;hb=5cb9051a0418815636a1d5df66940e168c4e0a56;hp=cb3ea78753c45f3814d28de12ebc6640540665d0;hpb=8e416aee220bf6959e2e21f18a5ebfec1421858b;p=functest.git diff --git a/functest/utils/constants.py b/functest/utils/constants.py index cb3ea7875..5e7c24422 100644 --- a/functest/utils/constants.py +++ b/functest/utils/constants.py @@ -2,19 +2,10 @@ # pylint: disable=missing-docstring -import six +import pkg_resources +from xtesting.utils import constants -from functest.utils import config -from functest.utils import env +CONFIG_FUNCTEST_YAML = pkg_resources.resource_filename( + 'functest', 'ci/config_functest.yaml') - -class Constants(object): # pylint: disable=too-few-public-methods - - 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