Skip to content

Commit b375b06

Browse files
Add check that permissions check can be skipped with unsafe flag
1 parent 4d80a80 commit b375b06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/test_configmanager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ def test_error_config_file_writable_by_group(tmp_path):
688688
):
689689
c1["b"]
690690

691+
# file permissions check can be skipped with unsafe_skip_file_permissions_check flag
692+
c1.read_config(skip_file_permissions_check=True)
693+
assert c1["b"] is True
694+
691695

692696
@pytest.mark.skipif(IS_WINDOWS, reason="chmod doesn't work on Windows")
693697
def test_skip_warning_config_file_permissions(tmp_path, monkeypatch):

0 commit comments

Comments
 (0)