Initial commit

This commit is contained in:
2026-05-16 12:05:36 -03:00
parent 0ce972a361
commit e82cee97a7
65 changed files with 9051 additions and 5 deletions
+22
View File
@@ -0,0 +1,22 @@
from pathlib import Path
import pytest
from app.config import load_settings
def test_default_config_requires_real_runtime_config(monkeypatch, tmp_path):
monkeypatch.delenv("DMARC_SENTINEL_CONFIG", raising=False)
monkeypatch.chdir(tmp_path)
with pytest.raises(FileNotFoundError, match="config/config.yml"):
load_settings()
def test_explicit_config_path_is_loaded(monkeypatch):
path = Path("tests/fixtures/config_test.yml")
monkeypatch.setenv("DMARC_SENTINEL_CONFIG", str(path))
settings = load_settings()
assert settings.inboxes[0].id == "tukutoi"