Merge pull request #47683 from Ch3LL/mac_user_test

Remove unnecessary setUp in states.test_user test for mac
This commit is contained in:
Nicole Thomas 2018-05-17 17:28:25 -04:00 committed by GitHub
commit fd2d45d9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,12 +44,6 @@ class UserTest(ModuleCase, SaltReturnAssertsMixin):
user_name = 'salt_test'
user_home = '/var/lib/salt_test'
def setUp(self):
if salt.utils.is_darwin():
#on mac we need to add user, because there is
#no creationtime for nobody user.
add_user = self.run_function('user.add', [USER], gid=GID)
def test_user_absent(self):
ret = self.run_state('user.absent', name='unpossible')
self.assertSaltTrueReturn(ret)