forked from p15670423/monkey
tests: Use `is_windows_os()` while skipping tests in test_post_breach_files.py
This commit is contained in:
parent
7211d59a38
commit
7afe0818e5
|
@ -41,7 +41,7 @@ def dir_is_empty(dir_path):
|
|||
return len(dir_contents) == 0
|
||||
|
||||
|
||||
@pytest.mark.skipif(os.name != "posix", reason="Tests Posix (not Windows) permissions.")
|
||||
@pytest.mark.skipif(is_windows_os(), reason="Tests Posix (not Windows) permissions.")
|
||||
def test_custom_pba_dir_permissions_linux():
|
||||
st = os.stat(PostBreachFilesService.get_custom_pba_directory())
|
||||
|
||||
|
@ -57,7 +57,7 @@ def _get_acl_and_sid_from_path(path: str):
|
|||
return acl, sid
|
||||
|
||||
|
||||
@pytest.mark.skipif(os.name == "posix", reason="Tests Windows (not Posix) permissions.")
|
||||
@pytest.mark.skipif(not is_windows_os(), reason="Tests Windows (not Posix) permissions.")
|
||||
def test_custom_pba_dir_permissions_windows():
|
||||
pba_dir = PostBreachFilesService.get_custom_pba_directory()
|
||||
|
||||
|
|
Loading…
Reference in New Issue