mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42182 from twangboy/win_unit_test_useradd
Fix `unit.modules.test_useradd` for Windows
This commit is contained in:
commit
07593675e2
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,7 @@ class UserAddTestCase(TestCase, LoaderModuleMockMixin):
|
|||
|
||||
# 'getent' function tests: 2
|
||||
|
||||
@skipIf(HAS_PWD is False, 'The pwd module is not available')
|
||||
def test_getent(self):
|
||||
'''
|
||||
Test if user.getent already have a value
|
||||
|
@ -359,6 +360,7 @@ class UserAddTestCase(TestCase, LoaderModuleMockMixin):
|
|||
|
||||
# 'list_users' function tests: 1
|
||||
|
||||
@skipIf(HAS_PWD is False, 'The pwd module is not available')
|
||||
def test_list_users(self):
|
||||
'''
|
||||
Test if it returns a list of all users
|
||||
|
|
Loading…
Add table
Reference in a new issue