aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-12 08:31:31 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-07 05:40:36 +0200
commit12d8254ad80f974d9b733d5262af842c362fb95a (patch)
tree8fd14e0f606f90ee8af3a9ad4c1fd75433a4bfc9 /xtesting/tests/unit
parentf990bd3c8cbac17d4c0d36b18e5debb58a72402c (diff)
Improve dependency management
It avoids declaring dependencies if needed. Negative regex are correcty managed as well. Change-Id: I0e978823526246bc4a5192e63a8a893a4add0e2a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit a507f38dc69019523ff02006622eb4ab84cd5ba1)
Diffstat (limited to 'xtesting/tests/unit')
-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):