toulouse-maelis: add building letters to complement referential (#79386)
gitea/passerelle/pipeline/head This commit looks good Details

This commit is contained in:
Nicolas Roche 2023-07-04 17:25:56 +02:00
parent 122a0f6c22
commit 56e2a4b1d9
2 changed files with 6 additions and 2 deletions

View File

@ -163,7 +163,9 @@ class ToulouseMaelis(BaseResource, HTTPResource):
def update_family_referentials(self):
# local referentials
complement_data = [
{'id': 'B', 'text': 'bis'},
{'id': 'A', 'text': 'bâtiment A'},
{'id': 'B', 'text': 'bâtiment B, ou bis'},
{'id': 'C', 'text': 'bâtiment C'},
{'id': 'Q', 'text': 'quater'},
{'id': 'T', 'text': 'ter'},
]

View File

@ -811,7 +811,9 @@ def test_read_complement_list(con, app):
resp = app.get(url)
assert resp.json['err'] == 0
assert resp.json['data'] == [
{'id': 'B', 'text': 'bis'},
{'id': 'A', 'text': 'bâtiment A'},
{'id': 'B', 'text': 'bâtiment B, ou bis'},
{'id': 'C', 'text': 'bâtiment C'},
{'id': 'Q', 'text': 'quater'},
{'id': 'T', 'text': 'ter'},
]