mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Skip pip test if pip is not installed
This commit is contained in:
parent
92ffbaba6e
commit
ac2344f2cb
@ -11,6 +11,12 @@ class PipModuleTest(integration.ModuleCase):
|
||||
'''
|
||||
Validate the pip module
|
||||
'''
|
||||
def setUp(self):
|
||||
super(PipModuleTest, self).setUp()
|
||||
ret = self.run_function('cmd.which_bin', [['pip2', 'pip', 'pip-python']])
|
||||
if not ret:
|
||||
self.skipTest("pip not installed")
|
||||
|
||||
def test_freeze(self):
|
||||
'''
|
||||
pip.freeze
|
||||
|
Loading…
Reference in New Issue
Block a user