aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/tests/unit')
-rw-r--r--xtesting/tests/unit/core/test_feature.py2
-rw-r--r--xtesting/tests/unit/core/test_robotframework.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/xtesting/tests/unit/core/test_feature.py b/xtesting/tests/unit/core/test_feature.py
index 9bbe5331..3d3b66d3 100644
--- a/xtesting/tests/unit/core/test_feature.py
+++ b/xtesting/tests/unit/core/test_feature.py
@@ -24,7 +24,7 @@ class FeatureTestingBase(unittest.TestCase):
_project_name = "bar"
_repo = "dir_repo_bar"
_cmd = "run_bar_tests.py"
- _output_file = '/home/opnfv/xtesting/results/foo.log'
+ _output_file = '/var/lib/xtesting/results/foo.log'
feature = None
@mock.patch('time.time', side_effect=[1, 2])
diff --git a/xtesting/tests/unit/core/test_robotframework.py b/xtesting/tests/unit/core/test_robotframework.py
index 7131b7e2..93111f38 100644
--- a/xtesting/tests/unit/core/test_robotframework.py
+++ b/xtesting/tests/unit/core/test_robotframework.py
@@ -169,6 +169,7 @@ class RunTesting(unittest.TestCase):
self._test_makedirs()
args[0].assert_called_once_with(self.test.res_dir)
+ @mock.patch('os.makedirs')
@mock.patch('robot.run')
def _test_parse_results(self, status, *args):
self.assertEqual(
@@ -180,6 +181,7 @@ class RunTesting(unittest.TestCase):
*self.suites, log='NONE', output=self.test.xml_file,
report='NONE', stdout=mock.ANY, variable=self.variable,
variablefile=self.variablefile)
+ args[1].assert_called_once_with(self.test.res_dir)
def test_parse_results_exc(self):
with mock.patch.object(self.test, 'parse_results',