Skip to content

Commit

Permalink
Gate docker unit test to check for docker (#34591)
Browse files Browse the repository at this point in the history
* Gate docker unit test to check for docker

* Change skipIf to check if docker-py is installed, not version check
  • Loading branch information
Justin Anderson authored and Nicole Thomas committed Jul 12, 2016
1 parent ae38c87 commit 7dd8035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/modules/dockerng_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def test_ps_with_filters(self):
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, _):
'''
Expand Down

0 comments on commit 7dd8035

Please sign in to comment.