en cours
gitea/passerelle/pipeline/head There was a failure building this commit Details

This commit is contained in:
Nicolas Roche 2023-06-14 15:32:11 +02:00
parent 02644bb98e
commit 5f6a4407bb
5 changed files with 17 additions and 5 deletions

View File

@ -70,7 +70,8 @@
"countryCode": null,
"cdDepartment": "19",
"communeCode_text": "BRIVE-LA-GAILLARDE",
"cdDepartment_text": "CORREZE"
"cdDepartment_text": "CORREZE",
"zipCode": "19100"
},
"adresse": {
"idStreet": "2317",
@ -145,7 +146,8 @@
"countryCode": null,
"cdDepartment": "19",
"communeCode_text": "BRIVE-LA-GAILLARDE",
"cdDepartment_text": "CORREZE"
"cdDepartment_text": "CORREZE",
"zipCode": "19100"
},
"dietcode": "MENU_AV",
"bPhoto": true,

View File

@ -914,7 +914,6 @@ def test_read_family_members(conn, update_data):
assert res['data']['personInfo']['firstname'] == 'ABRAHAM JEBEDIAH'
@pytest.mark.xfail(run=False)
def test_add_supplied_document(conn, create_data):
unlink(conn, create_data['name_id'])
link(conn, create_data)

View File

@ -3,8 +3,13 @@ import datetime
import pytest
import requests
from .conftest import link, unlink
def test_create_nursery_demand_on_existing_child(conn, create_data):
unlink(conn, create_data['name_id'])
link(conn, create_data)
url = conn + '/get-nursery-geojson'
resp = requests.get(url)
resp.raise_for_status()
@ -57,6 +62,9 @@ def test_create_nursery_demand_on_existing_child(conn, create_data):
def test_create_nursery_demand_adding_new_child(conn, create_data):
unlink(conn, create_data['name_id'])
link(conn, create_data)
url = conn + '/get-nursery-geojson'
resp = requests.get(url)
resp.raise_for_status()
@ -70,6 +78,7 @@ def test_create_nursery_demand_adding_new_child(conn, create_data):
res = resp.json()
assert res['err'] == 0
nb_childs = len(res['data']['childList'])
assert 'NELSON' not in [x['firstname'] for x in res['data']['childList']]
url = conn + '/create-nursery-demand'
payload = {
@ -102,4 +111,5 @@ def test_create_nursery_demand_adding_new_child(conn, create_data):
res = resp.json()
assert res['err'] == 0
assert len(res['data']['childList']) == nb_childs + 1
assert 'NELSON' in [x['firstname'] for x in res['data']['childList']]
assert res['data']['childList'][nb_childs]['num'] == child_id

View File

@ -205,11 +205,10 @@ def test_perisco_recurrent_week(conn, create_data, perisco_subscribe_info, refer
resp = requests.get(url, params=params)
resp.raise_for_status()
assert resp.json()['err'] == 0
assert len(resp.json()['data']) == 2
assert len(resp.json()['data']) == 1
assert resp.json()['data'][0]['id'] == perisco_subscribe_info['activity']['id']
assert [(x['text'], x['libelle'], x['libelle2']) for x in resp.json()['data']] == [
('Temps du midi', 'TEST TEMPS DU MIDI 22/23', 'Temps du midi'),
('Temps du midi', 'TEST TEMPS DU MIDI 22/23', 'Temps du midi'),
]
# get recurent-week gabarit

View File

@ -13,6 +13,7 @@ def test_catalog_personnalise_extrasco(extrasco_subscribe_info):
'quantity': None,
'unitPrice': 11.5,
}
assert item['activity']['activityPortail']['blocNoteList'] == []
def test_catalog_personnalise_extrasco2(extrasco_subscribe_info2):
@ -26,6 +27,7 @@ def test_catalog_personnalise_extrasco2(extrasco_subscribe_info2):
'quantity': None,
'unitPrice': 11.5,
}
assert item['activity']['activityPortail']['blocNoteList'] == []
def test_direct_subscribe(conn, create_data, extrasco_subscribe_info, reference_year):