Switch the order of the decorator

When @requires_system_grains is listed before other decorators, wrapper
function gets confused on where the grains kwarg should go.
This commit is contained in:
rallytime 2016-09-14 12:12:21 -06:00
parent ee997be6d8
commit 9e15df9b23

View File

@ -596,8 +596,8 @@ class PkgTest(integration.ModuleCase,
'Package {0} is already up-to-date'.format(target)
)
@requires_system_grains
@requires_salt_modules('pkg.group_install')
@requires_system_grains
def test_group_installed_handle_missing_package_group(self, grains=None): # pylint: disable=unused-argument
'''
Tests that a CommandExecutionError is caught and the state returns False when