diff --git a/tests/test_report_allocations.py b/tests/test_report_allocations.py index 8b3cbe4..29cf835 100644 --- a/tests/test_report_allocations.py +++ b/tests/test_report_allocations.py @@ -35,6 +35,7 @@ from app.schemas import ( ReportSubmitRequest, ) from app.services import auto_submit as auto_submit_service +from app.services import reporting_window as reporting_window_service from app.services.report_lifecycle import purge_expired_voided_reports from app.services.metrics import calculate_report_metrics from app.services.report_allocations import ( @@ -896,6 +897,7 @@ def test_submit_report_creates_allocations(monkeypatch): db.add_all([session, _press_equipment(), _product()]) db.commit() monkeypatch.setattr(reports_router, "report_out", lambda report, schedule=None: report) + monkeypatch.setattr(reporting_window_service, "now", lambda: datetime(2026, 7, 25, 11, 5)) report = reports_router.submit_report( ReportSubmitRequest(