mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #49294 from Ch3LL/fed_28_tests
Move run_function call from __init__ to setup
This commit is contained in:
commit
7bb356f11e
1 changed files with 1 additions and 1 deletions
|
@ -31,12 +31,12 @@ class ShadowModuleTest(ModuleCase):
|
|||
super(self.__class__, self).__init__(arg)
|
||||
self._test_user = self.__random_string()
|
||||
self._no_user = self.__random_string()
|
||||
self._password = self.run_function('shadow.gen_password', ['Password1234'])
|
||||
|
||||
def setUp(self):
|
||||
'''
|
||||
Get current settings
|
||||
'''
|
||||
self._password = self.run_function('shadow.gen_password', ['Password1234'])
|
||||
if 'ERROR' in self._password:
|
||||
self.fail('Failed to generate password: {0}'.format(self._password))
|
||||
super(ShadowModuleTest, self).setUp()
|
||||
|
|
Loading…
Add table
Reference in a new issue