aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/core/test_robotframework.py
diff options
context:
space:
mode:
authorAjay Kumar <ajay4.kumar@orange.com>2021-04-05 16:08:01 +0530
committerCédric Ollivier <cedric.ollivier@orange.com>2021-04-27 17:23:38 +0200
commit95611ad4a2943831f710c32867d8636f03021346 (patch)
tree68a85ed47cdb7e7cab64f06e6436deeca836fa4a /xtesting/tests/unit/core/test_robotframework.py
parent49504223bc2ca476e63484e98d8b4cdbe299a09d (diff)
Add an Ansible driver
It calls ansible_runner.interface.run() by converting the testcase description data to kwargs. It only overrides quiet and artifact_dir to implement the Xtesting behavior. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ifd09810400babc0f2b81f2c33edf55a3ed88807b Signed-off-by: Ajay kumar <ajay4.kumar@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/tests/unit/core/test_robotframework.py')
-rw-r--r--xtesting/tests/unit/core/test_robotframework.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/xtesting/tests/unit/core/test_robotframework.py b/xtesting/tests/unit/core/test_robotframework.py
index 19c4e0f0..c24d33dd 100644
--- a/xtesting/tests/unit/core/test_robotframework.py
+++ b/xtesting/tests/unit/core/test_robotframework.py
@@ -189,8 +189,8 @@ class RunTesting(unittest.TestCase):
variablefile=self.variablefile, include=self.include),
self.test.EX_RUN_ERROR)
args[0].assert_not_called()
- mock_method.asser_not_called()
- mmethod.asser_not_called()
+ mock_method.assert_not_called()
+ mmethod.assert_not_called()
@mock.patch('os.makedirs', side_effect=Exception)
@mock.patch('os.path.exists', return_value=False)
@@ -248,7 +248,7 @@ class RunTesting(unittest.TestCase):
mock.patch.object(self.test, 'generate_report') as mmethod:
self._test_parse_results(self.test.EX_RUN_ERROR)
mock_method.assert_called_once_with()
- mmethod.asser_not_called()
+ mmethod.assert_not_called()
def test_parse_results_robot_error(self):
with mock.patch.object(self.test, 'parse_results',
@@ -256,7 +256,7 @@ class RunTesting(unittest.TestCase):
mock.patch.object(self.test, 'generate_report') as mmethod:
self._test_parse_results(self.test.EX_RUN_ERROR)
mock_method.assert_called_once_with()
- mmethod.asser_not_called()
+ mmethod.assert_not_called()
@mock.patch('os.makedirs')
@mock.patch('robot.run')