diff options
author | xudan <xudan16@huawei.com> | 2018-12-13 06:23:08 -0500 |
---|---|---|
committer | Dan Xu <xudan16@huawei.com> | 2018-12-17 01:29:29 +0000 |
commit | 8ab783f403984b3ef9a6c3010a9a81c0f29c4236 (patch) | |
tree | f20edcd1d4b1c56182e11ccfe05f66b6d7ead26f /dovetail/tests/unit/test_container.py | |
parent | 13e644d0ba893ddc5e2944c2e827fde7cd58ae72 (diff) |
make item 'extra_container' available for every project
The item 'extra_container' used to be available for Bottlenecks only.
Make it open for Dovetail framework.
Change-Id: If4f2c032924447b97e401d497aca0309c0f5d847
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/tests/unit/test_container.py')
-rw-r--r-- | dovetail/tests/unit/test_container.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dovetail/tests/unit/test_container.py b/dovetail/tests/unit/test_container.py index 70e01d8e..25509a70 100644 --- a/dovetail/tests/unit/test_container.py +++ b/dovetail/tests/unit/test_container.py @@ -154,6 +154,13 @@ class ContainerTesting(unittest.TestCase): call('sudo docker rm -f None', self.logger), call('sudo docker rm -f container', self.logger)]) + @patch('dovetail.container.dt_cfg') + @patch('dovetail.container.dt_utils') + def test_clean_no_extra_container(self, mock_utils, mock_config): + mock_utils.get_value_from_dict.return_value = None + self.container.clean() + mock_utils.get_value_from_dict.assert_called_once() + @patch('dovetail.container.dt_utils') def test_check_container_exist_true(self, mock_utils): container_name = 'container' |