X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fconstants.py;h=5e7c24422d6eaee1d19cb570ee20e88193260848;hb=9e4e6f049fa7d5cce8db61dfa2ebebc55f91c1d8;hp=d8a1d54d1fb4dab7d4253b630012b7eae841ff6f;hpb=d589e4e5345ed82c68d9a011ac89f8cdbefe2ca3;p=functest.git diff --git a/functest/utils/constants.py b/functest/utils/constants.py index d8a1d54d1..5e7c24422 100644 --- a/functest/utils/constants.py +++ b/functest/utils/constants.py @@ -3,22 +3,9 @@ # pylint: disable=missing-docstring import pkg_resources -import six +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 - - CONFIG_FUNCTEST_YAML = pkg_resources.resource_filename( - 'functest', 'ci/config_functest.yaml') - - def __init__(self): - for attr_n, attr_v in six.iteritems(config.CONF.__dict__): - setattr(self, attr_n, attr_v) - for env_n, env_v in six.iteritems(env.ENV.__dict__): - setattr(self, env_n, env_v) - - -CONST = Constants() +ENV_FILE = constants.ENV_FILE