Remove useless reports, avoid DB-Races
This commit is contained in:
@@ -165,7 +165,7 @@ def test_repeated_failure_days_threshold_creates_alert():
|
||||
assert any(alert.type == "repeated_dmarc_failure" for alert, _, _ in alerts)
|
||||
|
||||
|
||||
def test_missing_reporter_threshold_creates_alert():
|
||||
def test_missing_reporter_gap_does_not_create_alert():
|
||||
session = _session()
|
||||
settings = _settings()
|
||||
now = datetime(2026, 5, 16, 12, tzinfo=timezone.utc)
|
||||
@@ -174,4 +174,4 @@ def test_missing_reporter_threshold_creates_alert():
|
||||
|
||||
alerts = analyze_report(session, settings, report)
|
||||
|
||||
assert any(alert.type == "missing_reporter" for alert, _, _ in alerts)
|
||||
assert not any(alert.type == "missing_reporter" for alert, _, _ in alerts)
|
||||
|
||||
Reference in New Issue
Block a user