diff --git a/tests/test_main.py b/tests/test_main.py index 17b488c4..76c1f70e 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -61,7 +61,9 @@ def test_set_key_encoding(dotenv_path): assert dotenv_path.read_text(encoding=encoding) == "a='é'\n" -@pytest.mark.skipif(os.geteuid() == 0, reason="Root user can access files even with 000 permissions.") +@pytest.mark.skipif( + os.geteuid() == 0, reason="Root user can access files even with 000 permissions." +) def test_set_key_permission_error(dotenv_path): dotenv_path.chmod(0o000) @@ -168,7 +170,9 @@ def test_unset_encoding(dotenv_path): assert dotenv_path.read_text(encoding=encoding) == "" -@pytest.mark.skipif(os.geteuid() == 0, reason="Root user can access files even with 000 permissions.") +@pytest.mark.skipif( + os.geteuid() == 0, reason="Root user can access files even with 000 permissions." +) def test_set_key_unauthorized_file(dotenv_path): dotenv_path.chmod(0o000)