diff options
author | Moshe <moshehoa@amdocs.com> | 2018-03-14 14:22:13 +0200 |
---|---|---|
committer | Moshe <moshehoa@amdocs.com> | 2018-03-14 14:23:25 +0200 |
commit | 30497ac60f062adba7dae751110dd9fc87ef04db (patch) | |
tree | d9814a8e8ee12e57e241d07a2719c091c1b92a46 /vnftest/common | |
parent | e01f70617a2f22b71cfce912b72a1dbb77f3f969 (diff) |
Onboard package test case
Issue-ID: VNFSDK-196
Change-Id: I7ba6de4fe6c55b370f9787c23ad16f1afc26f678
Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/common')
-rw-r--r-- | vnftest/common/constants.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vnftest/common/constants.py b/vnftest/common/constants.py index 9da64ba..8bbe070 100644 --- a/vnftest/common/constants.py +++ b/vnftest/common/constants.py @@ -38,11 +38,12 @@ VNFTEST_ROOT_PATH = dirname( def get_param(key, default=''): - # we have to defer this to runtime so that we can mock os.environ.get in unittests - default_path = os.path.join(VNFTEST_ROOT_PATH, "etc/vnftest/vnftest.yaml") - conf_file = os.environ.get('CONF_FILE', default_path) # don't re-parse yaml for each lookup if not CONF: + # we have to defer this to runtime so that we can mock os.environ.get in unittests + default_path = os.path.join(VNFTEST_ROOT_PATH, "etc/vnftest/vnftest.yaml") + conf_file = os.environ.get('CONF_FILE', default_path) + # do not use vnftest.common.utils.parse_yaml # since vnftest.common.utils creates a logger # and so it cannot be imported before this code |