Skip to content

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

Closed
ShallowRed wants to merge 2 commits into
qloridant:mainfrom
ShallowRed:test/fc-mapping-nested-address
Closed

ShallowRed wants to merge 2 commits into
qloridant:mainfrom
ShallowRed: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.

@ShallowRed

Copy link
Copy Markdown
Collaborator Author

Remplacée par #15, ouverte depuis une branche du dépôt.

@ShallowRed ShallowRed closed this Dec 3, 2026
@ShallowRed
ShallowRed deleted the test/fc-mapping-nested-address branch December 3, 2026 17:50
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