We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d10ea61 commit 0525fc9Copy full SHA for 0525fc9
tests/test_main.py
@@ -61,6 +61,7 @@ def test_set_key_encoding(dotenv_path):
61
assert dotenv_path.read_text(encoding=encoding) == "a='é'\n"
62
63
64
+@pytest.mark.skipif(os.geteuid() == 0, reason="Root user can access files even with 000 permissions.")
65
def test_set_key_permission_error(dotenv_path):
66
dotenv_path.chmod(0o000)
67
@@ -167,6 +168,7 @@ def test_unset_encoding(dotenv_path):
167
168
assert dotenv_path.read_text(encoding=encoding) == ""
169
170
171
172
def test_set_key_unauthorized_file(dotenv_path):
173
174
0 commit comments