diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-11 16:12:57 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-11 17:32:40 +0200 |
commit | 4fb7e1330137fb77ed1b29bbc7c1491b6e12d9b6 (patch) | |
tree | 2790681584dd8743d58f2767be6dd41f8cc19a9c /functest/tests/unit/openstack | |
parent | f83c5fc1f0ecd3b93a39b3cf90ed9cd478cb37a6 (diff) |
Check the status of inherited steps
Change-Id: If63c228f2844194279b560515f4ab24a4ee88be0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/openstack')
-rw-r--r-- | functest/tests/unit/openstack/tempest/test_tempest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/functest/tests/unit/openstack/tempest/test_tempest.py b/functest/tests/unit/openstack/tempest/test_tempest.py index 3dd05abb6..23dcd6c75 100644 --- a/functest/tests/unit/openstack/tempest/test_tempest.py +++ b/functest/tests/unit/openstack/tempest/test_tempest.py @@ -248,7 +248,9 @@ class OSTempestTesting(unittest.TestCase): side_effect=Exception): self._test_run(testcase.TestCase.EX_RUN_ERROR) - def test_run(self): + @mock.patch('functest.opnfv_tests.openstack.tempest.tempest.TempestCommon.' + 'run', return_value=testcase.TestCase.EX_OK) + def test_run(self, *args): with mock.patch.object(self.tempestcommon, 'update_rally_regex'), \ mock.patch.object(self.tempestcommon, 'generate_test_list'), \ mock.patch.object(self.tempestcommon, @@ -258,6 +260,7 @@ class OSTempestTesting(unittest.TestCase): 'parse_verifier_result'), \ mock.patch.object(self.tempestcommon, 'generate_report'): self._test_run(testcase.TestCase.EX_OK) + args[0].assert_called_once_with() if __name__ == "__main__": |