Commit f6da0bbc authored by David Foucher's avatar David Foucher

Fix test legacy API on type individu

parent d82553a6
......@@ -50,7 +50,7 @@ def extrapolate_context(context):
)
if context.get("beneficiaire.allocation_type") == "non":
del context["beneficiaire.allocation_type"]
if context.get("individu.type") == "DE":
if context.get("individu.type", '').upper() == "DE":
context["beneficiaire.inscrit_pe"] = True
if "beneficiaire.age" not in context and context.get("beneficiaire.naissance"):
context["beneficiaire.age"] = calculate_age(context["beneficiaire.naissance"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment