mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
working pytest run
This commit is contained in:
parent
59beb39406
commit
37abb1d06a
3 changed files with 2 additions and 3 deletions
0
tests/kitchen/pytest.ini
Normal file
0
tests/kitchen/pytest.ini
Normal file
|
@ -1,8 +1,7 @@
|
|||
def test_formula(salt):
|
||||
formulas = {'wordpress',}
|
||||
dirs = salt('cp.list_master_dirs')
|
||||
assert all([formula in dirs for formula in formulas])
|
||||
assert 'states' in dirs
|
||||
|
||||
def test_wordpress_module(salt):
|
||||
wordpressdir = salt('grains.get', 'wordpressdir')
|
||||
assert salt('wordpress.is_installed', path=wordpressdir)
|
||||
assert salt('wordpress.is_installed', wordpressdir)
|
||||
|
|
Loading…
Add table
Reference in a new issue