mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing test_path_which to check that the filter is available rather than results.
This commit is contained in:
parent
12ecfdee93
commit
2ccf2c5fe0
1 changed files with 1 additions and 3 deletions
|
@ -602,12 +602,10 @@ class JinjaFiltersTest(object):
|
|||
'''
|
||||
test jinja filter path.which
|
||||
'''
|
||||
_expected = {'ret': '/usr/bin/which'}
|
||||
ret = self.run_function('state.sls',
|
||||
['jinja_filters.path_which'])
|
||||
self.assertIn('module_|-test_|-test.echo_|-run', ret)
|
||||
self.assertEqual(ret['module_|-test_|-test.echo_|-run']['changes'],
|
||||
_expected)
|
||||
self.assertIn('ret', ret['module_|-test_|-test.echo_|-run']['changes'])
|
||||
|
||||
def test_stringutils_contains_whitespace(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue