Skip to content

test(user): align the mapping tests with the nested address of the pass culture manifest - #15

Merged
ShallowRed merged 2 commits into
mainfrom
test/fc-mapping-nested-address
Dec 3, 2026
Merged

ShallowRed merged 2 commits into
mainfrom
test/fc-mapping-nested-address

Conversation

@ShallowRed

Copy link
Copy Markdown
Collaborator

Description

examples/pass-culture-package/manifest.json décrit l'adresse par un objet depuis le commit 3228a13, et trois tests de tests/test_fc_mapping.py échouaient. Aligne ces tests sur le manifeste et corrige le groupe d'un champ imbriqué.

Modifications

  • Les tests de extract_mappings et de generate_input_payload attendent le chemin data.address.code_postal_ville et sa source apiparticulier.
  • get_field_metadata donne à un champ imbriqué le groupe de son premier segment (data pour data.address.code_postal_ville), comme le décrit sa docstring et comme api/static/user/execute.html regroupe les champs.

Comment tester

uv run pytest : 36 tests passent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant