Disable tests that require pwd in Windows

This commit is contained in:
twangboy 2017-07-06 13:19:40 -06:00
parent 2ae5517d36
commit 8260a71c07

View File

@ -72,6 +72,7 @@ class UserAddTestCase(TestCase, LoaderModuleMockMixin):
# 'getent' function tests: 2 # 'getent' function tests: 2
@skipIf(HAS_PWD is False, 'The pwd module is not available')
def test_getent(self): def test_getent(self):
''' '''
Test if user.getent already have a value Test if user.getent already have a value
@ -359,6 +360,7 @@ class UserAddTestCase(TestCase, LoaderModuleMockMixin):
# 'list_users' function tests: 1 # 'list_users' function tests: 1
@skipIf(HAS_PWD is False, 'The pwd module is not available')
def test_list_users(self): def test_list_users(self):
''' '''
Test if it returns a list of all users Test if it returns a list of all users