toulouse-maelis: [tests] add 3 countries (#76608)

This commit is contained in:
Nicolas Roche 2023-04-15 12:05:53 +02:00 committed by Nicolas Roche
parent c76fff6f23
commit 75e17ba29a
2 changed files with 14 additions and 2 deletions

View File

@ -25,6 +25,18 @@
<code>125</code>
<libelle>ALBANIE</libelle>
</itemList>
<itemList>
<code>99100</code>
<libelle>FRANCE</libelle>
</itemList>
<itemList>
<code>99350</code>
<libelle>MAROC</libelle>
</itemList>
<itemList>
<code>99351</code>
<libelle>TUNISIE</libelle>
</itemList>
</ns2:readCountryListResponse>
</soap:Body>
</soap:Envelope>

View File

@ -656,8 +656,8 @@ def test_read_country_list(con, app):
url = get_endpoint('read-country-list')
resp = app.get(url)
assert resp.json['err'] == 0
assert len(resp.json['data']) == 3
assert resp.json['data'] == [
assert len(resp.json['data']) == 6
assert resp.json['data'][:3] == [
{'id': '212', 'code': '212', 'text': 'AFGHANISTAN', 'libelle': 'AFGHANISTAN'},
{'id': '303', 'code': '303', 'text': 'AFRIQUE DU SUD', 'libelle': 'AFRIQUE DU SUD'},
{'id': '125', 'code': '125', 'text': 'ALBANIE', 'libelle': 'ALBANIE'},