test(api): add tests for ai suggestion endpoints and helpers

This commit is contained in:
Piotr Oleszczyk 2026-03-03 22:06:33 +01:00
parent 5ad9b66a21
commit 88f3642387
4 changed files with 387 additions and 1 deletions

View file

@ -345,7 +345,7 @@ def _build_products_context(
entry += f" nearest_open_pao_deadline={pao_deadlines[0]}"
if p.pao_months is not None:
entry += f" pao_months={p.pao_months}"
profile = ctx.get("product_effect_profile", {})
profile = ctx.get("effect_profile", {})
if profile:
notable = {k: v for k, v in profile.items() if v and v > 0}
if notable: