mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add pip installed and removed test (#33178)
This commit is contained in:
parent
96e3586f12
commit
a09e1b6335
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,15 @@ from salt.modules.virtualenv_mod import KNOWN_BINARY_NAMES
|
|||
@skipIf(salt.utils.which_bin(KNOWN_BINARY_NAMES) is None, 'virtualenv not installed')
|
||||
class PipStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn):
|
||||
|
||||
def test_pip_installed_removed(self):
|
||||
'''
|
||||
Tests installed and removed states
|
||||
'''
|
||||
ret = self.run_state('pip.installed', name='docker-py')
|
||||
self.assertSaltTrueReturn(ret)
|
||||
ret = self.run_state('pip.removed', name='docker-py')
|
||||
self.assertSaltTrueReturn(ret)
|
||||
|
||||
def test_pip_installed_errors(self):
|
||||
venv_dir = os.path.join(
|
||||
integration.SYS_TMP_DIR, 'pip-installed-errors'
|
||||
|
|
Loading…
Add table
Reference in a new issue