Model/backend/app/db/functions/tests
Khalim Conn-Kowlessar 6f0dcc0455 test(modelling): characterise the portfolio aggregation over plan_id
Pin the FE-facing aggregate_portfolio_recommendations (previously untested): it
sums a Scenario's default Recommendations onto the Scenario row, joining
Recommendation → Plan on recommendation.plan_id. Locks the m2m→plan_id read cut
for the FE-critical path, now testable thanks to the full-parity ScenarioModel.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 22:54:15 +00:00
..
__init__.py save_plan persisting domain Plan to magic_plan_* tables 🟥 2026-05-07 13:01:04 +00:00
conftest.py use pytest-postgresql in db tests instead of mocking and checking sql strings 2026-05-08 10:13:44 +00:00
test_magic_plan_functions.py Store uploaded_file_id on magic_plan_plan row 🟥 2026-05-13 10:50:28 +00:00
test_portfolio_functions.py test(modelling): characterise the portfolio aggregation over plan_id 2026-06-03 22:54:15 +00:00