aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/ci/test_generate_report.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-05-10 07:53:46 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-10 07:53:46 +0000
commitce80dec85ee484d5c0cd6ed2a48c60529938a706 (patch)
tree0421a847abb8d90a6d9030c8d1c4a0a601c44cb0 /functest/tests/unit/ci/test_generate_report.py
parent1fc80d52c05b773bf9d1b1004d53c8e6ab36b655 (diff)
parenta212763c3e9f4cf6d52200aa614e42a911c5dbf7 (diff)
Merge changes from topic 'add_testcase_str'
* changes: Remove the former results in DB url Implement TestCase __str__()
Diffstat (limited to 'functest/tests/unit/ci/test_generate_report.py')
-rw-r--r--functest/tests/unit/ci/test_generate_report.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/functest/tests/unit/ci/test_generate_report.py b/functest/tests/unit/ci/test_generate_report.py
index 13361c1d..2c5ce2ea 100644
--- a/functest/tests/unit/ci/test_generate_report.py
+++ b/functest/tests/unit/ci/test_generate_report.py
@@ -28,16 +28,16 @@ class GenerateReportTesting(unittest.TestCase):
@mock.patch('functest.ci.generate_report.urllib2.urlopen',
side_effect=urllib2.URLError('no host given'))
def test_get_results_from_db_fail(self, mock_method):
- url = "%s/results?build_tag=%s" % (ft_utils.get_db_url(),
- CONST.__getattribute__('BUILD_TAG'))
+ url = "%s?build_tag=%s" % (ft_utils.get_db_url(),
+ CONST.__getattribute__('BUILD_TAG'))
self.assertIsNone(gen_report.get_results_from_db())
mock_method.assert_called_once_with(url)
@mock.patch('functest.ci.generate_report.urllib2.urlopen',
return_value={'results': []})
def test_get_results_from_db_success(self, mock_method):
- url = "%s/results?build_tag=%s" % (ft_utils.get_db_url(),
- CONST.__getattribute__('BUILD_TAG'))
+ url = "%s?build_tag=%s" % (ft_utils.get_db_url(),
+ CONST.__getattribute__('BUILD_TAG'))
self.assertEqual(gen_report.get_results_from_db(), None)
mock_method.assert_called_once_with(url)