test_secrets_password_store: create gpghome with save permissions
All checks were successful
checks-impure / test (pull_request) Successful in 20s
checks / test (pull_request) Successful in 31s

This commit is contained in:
Jörg Thalheim 2023-10-04 19:56:18 +02:00
parent a2597717b3
commit 41106a67e2

View File

@ -18,7 +18,7 @@ def test_upload_secret(
) -> None:
monkeypatch.chdir(test_flake_with_core_and_pass)
gnupghome = temporary_dir / "gpg"
gnupghome.mkdir()
gnupghome.mkdir(mode=0o700)
monkeypatch.setenv("GNUPGHOME", str(gnupghome))
monkeypatch.setenv("PASSWORD_STORE_DIR", str(temporary_dir / "pass"))
gpg_key_spec = temporary_dir / "gpg_key_spec"