Merge pull request #49294 from Ch3LL/fed_28_tests

Move run_function call from __init__ to setup
This commit is contained in:
Nicole Thomas 2018-08-24 08:41:34 -04:00 committed by GitHub
commit 7bb356f11e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()