mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't try to run the dockerng unit tests if docker-py is missing
This commit is contained in:
parent
3bac06f099
commit
f32d8a8683
1 changed files with 1 additions and 1 deletions
|
@ -35,6 +35,7 @@ def _docker_py_version():
|
|||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
@skipIf(dockerng_mod.HAS_DOCKER_PY is False, 'docker-py must be installed to run these tests. Skipping.')
|
||||
class DockerngTestCase(TestCase):
|
||||
'''
|
||||
Validate dockerng module
|
||||
|
@ -66,7 +67,6 @@ class DockerngTestCase(TestCase):
|
|||
all=True,
|
||||
filters={'label': 'KEY'})
|
||||
|
||||
@skipIf(_docker_py_version() is None, 'docker-py needs to be installed for this test to run')
|
||||
@patch.object(dockerng_mod, '_get_exec_driver')
|
||||
def test_check_mine_cache_is_refreshed_on_container_change_event(self, _):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue