summaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/utils
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-12-20 19:19:20 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2017-12-20 19:23:16 +0100
commitf4e49ae7753901336814ccbd26003ac229440f5b (patch)
tree1447ceb7af149a87b6d43d8a51750cf3d9d89a09 /functest/tests/unit/utils
parented9c3b0b4aaa751e298aed6c52f56d2a0319c70d (diff)
Remove logger_test_results
It was only called in Feature which the result is already printed (see __str__()). It also eases moving Feature to xtesting as it breaks the link to functest_utils. Change-Id: Ib72d651dc7d89598704ff4d52d8b1ecb2bdade5b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/utils')
-rw-r--r--functest/tests/unit/utils/test_functest_utils.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/functest/tests/unit/utils/test_functest_utils.py b/functest/tests/unit/utils/test_functest_utils.py
index 17fb4c1f..7a77d25b 100644
--- a/functest/tests/unit/utils/test_functest_utils.py
+++ b/functest/tests/unit/utils/test_functest_utils.py
@@ -113,38 +113,6 @@ class FunctestUtilsTesting(unittest.TestCase):
CONST.__setattr__('BUILD_TAG', 'unknown_build_tag')
self.assertEqual(functest_utils.get_version(), "unknown")
- @mock.patch('functest.utils.functest_utils.logger.info')
- def test_logger_test_results(self, mock_logger_info):
- CONST.__setattr__('results_test_db_url', self.db_url)
- CONST.__setattr__('BUILD_TAG', self.build_tag)
- CONST.__setattr__('NODE_NAME', self.node_name)
- CONST.__setattr__('DEPLOY_SCENARIO', self.scenario)
- with mock.patch('functest.utils.functest_utils.get_version',
- return_value=self.version):
- functest_utils.logger_test_results(self.project, self.case_name,
- self.status, self.details)
- mock_logger_info.assert_called_once_with(
- "\n"
- "****************************************\n"
- "\t %(p)s/%(n)s results \n\n"
- "****************************************\n"
- "DB:\t%(db)s\n"
- "pod:\t%(pod)s\n"
- "version:\t%(v)s\n"
- "scenario:\t%(s)s\n"
- "status:\t%(c)s\n"
- "build tag:\t%(b)s\n"
- "details:\t%(d)s\n"
- % {'p': self.project,
- 'n': self.case_name,
- 'db': CONST.__getattribute__('results_test_db_url'),
- 'pod': self.node_name,
- 'v': self.version,
- 's': self.scenario,
- 'c': self.status,
- 'b': self.build_tag,
- 'd': self.details})
-
def _get_env_dict(self, var):
dic = {'INSTALLER_TYPE': self.installer,
'DEPLOY_SCENARIO': self.scenario,