aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-10-22 16:38:28 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-11-08 15:34:56 +0100
commit92681911699428a87ea56c0263832b96a93da3da (patch)
treea4ea7b315607c8f7812e91b11606359cf6a8d01d /xtesting/tests
parent78a7a64b8e304c0fa396ceb0f0527f1cedd0eeb1 (diff)
Update robotframework to latest release
Change-Id: I298320f666e048d42047fd00de74df83142a5186 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/tests')
-rw-r--r--xtesting/tests/unit/core/test_robotframework.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/xtesting/tests/unit/core/test_robotframework.py b/xtesting/tests/unit/core/test_robotframework.py
index c24d33dd..bc05f523 100644
--- a/xtesting/tests/unit/core/test_robotframework.py
+++ b/xtesting/tests/unit/core/test_robotframework.py
@@ -41,15 +41,12 @@ class ResultVisitorTesting(unittest.TestCase):
'starttime': "20161216 16:00:00.000",
'endtime': "20161216 16:00:01.000",
'elapsedtime': 1000,
- 'text': 'Hello, World!',
- 'critical': True}
+ 'text': 'Hello, World!'}
test = model.TestCase(
name=data['name'], status=data['status'], message=data['text'],
starttime=data['starttime'], endtime=data['endtime'])
test.parent = mock.Mock()
- config = {'name': data['parent'],
- 'criticality.test_is_critical.return_value': data[
- 'critical']}
+ config = {'name': data['parent']}
test.parent.configure_mock(**config)
self.visitor.visit_test(test)
self.assertEqual(self.visitor.get_data(), [data])
@@ -89,23 +86,23 @@ class ParseResultTesting(unittest.TestCase):
{'description': config['name'], 'tests': []})
def test_null_passed(self):
- self._config.update({'statistics.critical.passed': 0,
- 'statistics.critical.total': 20})
+ self._config.update({'statistics.passed': 0,
+ 'statistics.total': 20})
self._test_result(self._config, 0)
def test_no_test(self):
- self._config.update({'statistics.critical.passed': 20,
- 'statistics.critical.total': 0})
+ self._config.update({'statistics.passed': 20,
+ 'statistics.total': 0})
self._test_result(self._config, 0)
def test_half_success(self):
- self._config.update({'statistics.critical.passed': 10,
- 'statistics.critical.total': 20})
+ self._config.update({'statistics.passed': 10,
+ 'statistics.total': 20})
self._test_result(self._config, 50)
def test_success(self):
- self._config.update({'statistics.critical.passed': 20,
- 'statistics.critical.total': 20})
+ self._config.update({'statistics.passed': 20,
+ 'statistics.total': 20})
self._test_result(self._config, 100)