aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/ci/test_tier_builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/tests/unit/ci/test_tier_builder.py')
-rw-r--r--xtesting/tests/unit/ci/test_tier_builder.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/xtesting/tests/unit/ci/test_tier_builder.py b/xtesting/tests/unit/ci/test_tier_builder.py
index 58a9d9d0..402fc664 100644
--- a/xtesting/tests/unit/ci/test_tier_builder.py
+++ b/xtesting/tests/unit/ci/test_tier_builder.py
@@ -8,6 +8,7 @@
# pylint: disable=missing-docstring
import logging
+import os
import unittest
import mock
@@ -41,8 +42,9 @@ class TierBuilderTesting(unittest.TestCase):
with mock.patch('xtesting.ci.tier_builder.yaml.safe_load',
return_value=self.mock_yaml), \
mock.patch('six.moves.builtins.open', mock.mock_open()):
- self.tierbuilder = tier_builder.TierBuilder(
- 'test_installer', 'test_scenario', 'testcases_file')
+ os.environ["INSTALLER_TYPE"] = 'test_installer'
+ os.environ["DEPLOY_SCENARIO"] = 'test_scenario'
+ self.tierbuilder = tier_builder.TierBuilder('testcases_file')
self.tier_obj = self.tierbuilder.tier_objects[0]
def test_get_tiers(self):