Add CERT_DAYS setting and resolve_cert_days()

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Vlad Doloman
2026-08-15 05:14:07 +03:00
co-authored by Claude Opus 5
parent 749cec8b37
commit 119a567a49
3 changed files with 86 additions and 2 deletions
+7
View File
@@ -60,3 +60,10 @@ def test_comments_and_non_string_types_supported(tmp_path):
)
overrides = load_settings_overrides(None, "", _script_path(tmp_path))
assert overrides == {"SMTP_PORT": 2525, "CA_PASSPHRASE": ""}
def test_cert_days_is_overridable(tmp_path):
conf = tmp_path / "app.conf"
conf.write_text('CERT_DAYS = 90\n')
out = load_settings_overrides(str(conf), "", str(tmp_path / "app.py"))
assert out["CERT_DAYS"] == 90