Don't try to run the dockerng unit tests if docker-py is missing

This commit is contained in:
rallytime 2017-03-20 13:34:15 -06:00
parent 3bac06f099
commit f32d8a8683

View file

@ -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, _):
'''