Install Importarr from repository checkout

This commit is contained in:
2026-07-29 13:06:00 +02:00
parent 577ea97d46
commit 0f7fc6f032
9 changed files with 171 additions and 26 deletions
+17
View File
@@ -0,0 +1,17 @@
from importarr.config import Settings
def test_file_secret_env_vars_are_supported(tmp_path, monkeypatch):
sab_key = tmp_path / "sab-api-key"
auth_token = tmp_path / "auth-token"
sab_key.write_text("sab-secret\n", encoding="utf-8")
auth_token.write_text("auth-secret\n", encoding="utf-8")
monkeypatch.setenv("IMPORTARR_SAB_API_KEY_FILE", str(sab_key))
monkeypatch.setenv("IMPORTARR_AUTH_TOKEN_FILE", str(auth_token))
monkeypatch.setenv("IMPORTARR_STATE_PATH", str(tmp_path / "state.db"))
settings = Settings.from_env()
assert settings.sab_api_key == "sab-secret"
assert settings.auth_token == "auth-secret"