toujouse-maelis: [functests] add birth informations (#76608)
gitea/passerelle/pipeline/head There was a failure building this commit
Details
gitea/passerelle/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
f8124d9ece
commit
e852d7e2f3
|
@ -24,7 +24,10 @@ FAMILY_PAYLOAD = {
|
||||||
'lastname': 'Simpson',
|
'lastname': 'Simpson',
|
||||||
'maidenName': 'Bouvier',
|
'maidenName': 'Bouvier',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth': {'dateBirth': '1950-10-01'},
|
'birth': {
|
||||||
|
'dateBirth': '1950-10-01',
|
||||||
|
'countryCode': '404',
|
||||||
|
},
|
||||||
'adresse': {
|
'adresse': {
|
||||||
'idStreet': '2317',
|
'idStreet': '2317',
|
||||||
'num': '4',
|
'num': '4',
|
||||||
|
@ -38,7 +41,13 @@ FAMILY_PAYLOAD = {
|
||||||
'firstname': 'Homer',
|
'firstname': 'Homer',
|
||||||
'lastname': 'Simpson',
|
'lastname': 'Simpson',
|
||||||
'quality': 'PERE',
|
'quality': 'PERE',
|
||||||
'birth': {'dateBirth': '1956-05-12'},
|
'birth': {
|
||||||
|
'dateBirth': '1956-05-12',
|
||||||
|
'place': 'Brive-la-Gaillarde',
|
||||||
|
'communeCode': '19031',
|
||||||
|
'cdDepartment': '19',
|
||||||
|
'countryCode': '',
|
||||||
|
},
|
||||||
'adresse': {
|
'adresse': {
|
||||||
'num': '742',
|
'num': '742',
|
||||||
'numComp': None,
|
'numComp': None,
|
||||||
|
@ -88,7 +97,13 @@ FAMILY_PAYLOAD = {
|
||||||
'sexe': 'M',
|
'sexe': 'M',
|
||||||
'firstname': 'Bart',
|
'firstname': 'Bart',
|
||||||
'lastname': 'Simpson',
|
'lastname': 'Simpson',
|
||||||
'birth': {'dateBirth': '2014-04-01'},
|
'birth': {
|
||||||
|
'dateBirth': '2014-04-01',
|
||||||
|
'place': 'Brive-la-Gaillarde',
|
||||||
|
'communeCode': '19031',
|
||||||
|
'cdDepartment': '19',
|
||||||
|
'countryCode': '',
|
||||||
|
},
|
||||||
'bPhoto': True,
|
'bPhoto': True,
|
||||||
'bLeaveAlone': True,
|
'bLeaveAlone': True,
|
||||||
'dietcode': 'MENU_AV',
|
'dietcode': 'MENU_AV',
|
||||||
|
|
|
@ -17,8 +17,9 @@
|
||||||
"dateBirth": "1950-10-01T00:00:00+01:00",
|
"dateBirth": "1950-10-01T00:00:00+01:00",
|
||||||
"place": null,
|
"place": null,
|
||||||
"communeCode": null,
|
"communeCode": null,
|
||||||
"countryCode": null,
|
"countryCode": "404",
|
||||||
"cdDepartment": null
|
"cdDepartment": null,
|
||||||
|
"countryCode_text": "USA"
|
||||||
},
|
},
|
||||||
"adresse": {
|
"adresse": {
|
||||||
"idStreet": "2317",
|
"idStreet": "2317",
|
||||||
|
@ -56,10 +57,12 @@
|
||||||
"sexe": "M",
|
"sexe": "M",
|
||||||
"birth": {
|
"birth": {
|
||||||
"dateBirth": "2014-04-01T00:00:00+02:00",
|
"dateBirth": "2014-04-01T00:00:00+02:00",
|
||||||
"place": null,
|
"place": "Brive-la-Gaillarde",
|
||||||
"communeCode": null,
|
"communeCode": "19031",
|
||||||
"countryCode": null,
|
"countryCode": null,
|
||||||
"cdDepartment": null
|
"cdDepartment": "19",
|
||||||
|
"communeCode_text": "BRIVE-LA-GAILLARDE",
|
||||||
|
"cdDepartment_text": "CORREZE"
|
||||||
},
|
},
|
||||||
"dietcode": "MENU_AV",
|
"dietcode": "MENU_AV",
|
||||||
"bPhoto": true,
|
"bPhoto": true,
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
"civility": "MR",
|
"civility": "MR",
|
||||||
"birth": {
|
"birth": {
|
||||||
"dateBirth": "1956-05-12T00:00:00+01:00",
|
"dateBirth": "1956-05-12T00:00:00+01:00",
|
||||||
"place": null,
|
"place": "Brive-la-Gaillarde",
|
||||||
"communeCode": null,
|
"communeCode": "19031",
|
||||||
"countryCode": null,
|
"countryCode": null,
|
||||||
"cdDepartment": null
|
"cdDepartment": "19",
|
||||||
|
"communeCode_text": "BRIVE-LA-GAILLARDE",
|
||||||
|
"cdDepartment_text": "CORREZE"
|
||||||
},
|
},
|
||||||
"adresse": {
|
"adresse": {
|
||||||
"idStreet": null,
|
"idStreet": null,
|
||||||
|
|
|
@ -7,8 +7,9 @@
|
||||||
"dateBirth": "1970-01-01T00:00:00+01:00",
|
"dateBirth": "1970-01-01T00:00:00+01:00",
|
||||||
"place": null,
|
"place": null,
|
||||||
"communeCode": null,
|
"communeCode": null,
|
||||||
"countryCode": null,
|
"countryCode": "404",
|
||||||
"cdDepartment": null
|
"cdDepartment": null,
|
||||||
|
"countryCode_text": "USA"
|
||||||
},
|
},
|
||||||
"dietcode": "MENU_AV",
|
"dietcode": "MENU_AV",
|
||||||
"bPhoto": false,
|
"bPhoto": false,
|
||||||
|
|
|
@ -17,8 +17,9 @@
|
||||||
"dateBirth": "1950-10-01T00:00:00+01:00",
|
"dateBirth": "1950-10-01T00:00:00+01:00",
|
||||||
"place": null,
|
"place": null,
|
||||||
"communeCode": null,
|
"communeCode": null,
|
||||||
"countryCode": null,
|
"countryCode": "404",
|
||||||
"cdDepartment": null
|
"cdDepartment": null,
|
||||||
|
"countryCode_text": "USA"
|
||||||
},
|
},
|
||||||
"adresse": {
|
"adresse": {
|
||||||
"idStreet": "2317",
|
"idStreet": "2317",
|
||||||
|
@ -55,10 +56,12 @@
|
||||||
"civility": "MR",
|
"civility": "MR",
|
||||||
"birth": {
|
"birth": {
|
||||||
"dateBirth": "1956-05-12T00:00:00+01:00",
|
"dateBirth": "1956-05-12T00:00:00+01:00",
|
||||||
"place": null,
|
"place": "Brive-la-Gaillarde",
|
||||||
"communeCode": null,
|
"communeCode": "19031",
|
||||||
"countryCode": null,
|
"countryCode": null,
|
||||||
"cdDepartment": null
|
"cdDepartment": "19",
|
||||||
|
"communeCode_text": "BRIVE-LA-GAILLARDE",
|
||||||
|
"cdDepartment_text": "CORREZE"
|
||||||
},
|
},
|
||||||
"adresse": {
|
"adresse": {
|
||||||
"idStreet": null,
|
"idStreet": null,
|
||||||
|
@ -127,10 +130,12 @@
|
||||||
"sexe": "M",
|
"sexe": "M",
|
||||||
"birth": {
|
"birth": {
|
||||||
"dateBirth": "2014-04-01T00:00:00+02:00",
|
"dateBirth": "2014-04-01T00:00:00+02:00",
|
||||||
"place": null,
|
"place": "Brive-la-Gaillarde",
|
||||||
"communeCode": null,
|
"communeCode": "19031",
|
||||||
"countryCode": null,
|
"countryCode": null,
|
||||||
"cdDepartment": null
|
"cdDepartment": "19",
|
||||||
|
"communeCode_text": "BRIVE-LA-GAILLARDE",
|
||||||
|
"cdDepartment_text": "CORREZE"
|
||||||
},
|
},
|
||||||
"dietcode": "MENU_AV",
|
"dietcode": "MENU_AV",
|
||||||
"bPhoto": true,
|
"bPhoto": true,
|
||||||
|
|
|
@ -56,8 +56,9 @@
|
||||||
"dateBirth": "1956-05-12T00:00:00+01:00",
|
"dateBirth": "1956-05-12T00:00:00+01:00",
|
||||||
"place": null,
|
"place": null,
|
||||||
"communeCode": null,
|
"communeCode": null,
|
||||||
"countryCode": null,
|
"countryCode": "404",
|
||||||
"cdDepartment": null
|
"cdDepartment": null,
|
||||||
|
"countryCode_text": "USA"
|
||||||
},
|
},
|
||||||
"adresse": {
|
"adresse": {
|
||||||
"idStreet": null,
|
"idStreet": null,
|
||||||
|
@ -113,8 +114,9 @@
|
||||||
"dateBirth": "1970-01-01T00:00:00+01:00",
|
"dateBirth": "1970-01-01T00:00:00+01:00",
|
||||||
"place": null,
|
"place": null,
|
||||||
"communeCode": null,
|
"communeCode": null,
|
||||||
"countryCode": null,
|
"countryCode": "404",
|
||||||
"cdDepartment": null
|
"cdDepartment": null,
|
||||||
|
"countryCode_text": "USA"
|
||||||
},
|
},
|
||||||
"dietcode": null,
|
"dietcode": null,
|
||||||
"bPhoto": false,
|
"bPhoto": false,
|
||||||
|
|
|
@ -9,8 +9,9 @@
|
||||||
"dateBirth": "1956-05-12T00:00:00+01:00",
|
"dateBirth": "1956-05-12T00:00:00+01:00",
|
||||||
"place": null,
|
"place": null,
|
||||||
"communeCode": null,
|
"communeCode": null,
|
||||||
"countryCode": null,
|
"countryCode": "404",
|
||||||
"cdDepartment": null
|
"cdDepartment": null,
|
||||||
|
"countryCode_text": "USA"
|
||||||
},
|
},
|
||||||
"adresse": {
|
"adresse": {
|
||||||
"idStreet": null,
|
"idStreet": null,
|
||||||
|
|
|
@ -11,6 +11,7 @@ from .conftest import diff
|
||||||
'child-indicator',
|
'child-indicator',
|
||||||
'civility',
|
'civility',
|
||||||
'country',
|
'country',
|
||||||
|
'county',
|
||||||
'csp',
|
'csp',
|
||||||
'dietcode',
|
'dietcode',
|
||||||
'document',
|
'document',
|
||||||
|
@ -34,5 +35,5 @@ def test_referentials(conn, referentials, ref):
|
||||||
for item in res['data']:
|
for item in res['data']:
|
||||||
assert 'id' in item
|
assert 'id' in item
|
||||||
assert 'text' in item
|
assert 'text' in item
|
||||||
if ref not in ['street']:
|
if ref not in ['street', 'county']:
|
||||||
assert diff(res['data'], 'test_read_%s_list.json' % ref)
|
assert diff(res['data'], 'test_read_%s_list.json' % ref)
|
||||||
|
|
|
@ -18,7 +18,10 @@ FAMILY_RESET_PAYLOAD = {
|
||||||
'lastname': 'Simpson', # must be
|
'lastname': 'Simpson', # must be
|
||||||
'maidenName': 'reset', # no effect
|
'maidenName': 'reset', # no effect
|
||||||
'quality': 'AU',
|
'quality': 'AU',
|
||||||
'birth': {'dateBirth': '1950-10-01'}, # must be
|
'birth': {
|
||||||
|
'dateBirth': '1950-10-01', # must be
|
||||||
|
'countryCode': '',
|
||||||
|
},
|
||||||
'adresse': {'idStreet': '', 'street1': 'reset', 'town': 'reset', 'zipcode': 'reset'},
|
'adresse': {'idStreet': '', 'street1': 'reset', 'town': 'reset', 'zipcode': 'reset'},
|
||||||
},
|
},
|
||||||
'rl2': {
|
'rl2': {
|
||||||
|
@ -26,7 +29,13 @@ FAMILY_RESET_PAYLOAD = {
|
||||||
'firstname': 'Homer', # must be
|
'firstname': 'Homer', # must be
|
||||||
'lastname': 'Simpson', # must be
|
'lastname': 'Simpson', # must be
|
||||||
'quality': 'AU',
|
'quality': 'AU',
|
||||||
'birth': {'dateBirth': '1956-05-12'}, # must be
|
'birth': {
|
||||||
|
'dateBirth': '1956-05-12', # must be
|
||||||
|
'place': '',
|
||||||
|
'communeCode': '',
|
||||||
|
'cdDepartment': '',
|
||||||
|
'countryCode': '404',
|
||||||
|
},
|
||||||
'adresse': {
|
'adresse': {
|
||||||
'num': '42',
|
'num': '42',
|
||||||
'numComp': 'Q',
|
'numComp': 'Q',
|
||||||
|
@ -71,7 +80,13 @@ FAMILY_RESET_PAYLOAD = {
|
||||||
'sexe': 'F',
|
'sexe': 'F',
|
||||||
'firstname': 'Bartolome', # some side effects, cf test_update_child
|
'firstname': 'Bartolome', # some side effects, cf test_update_child
|
||||||
'lastname': 'Simps',
|
'lastname': 'Simps',
|
||||||
'birth': {'dateBirth': '1970-01-01'},
|
'birth': {
|
||||||
|
'dateBirth': '1970-01-01',
|
||||||
|
'place': '',
|
||||||
|
'communeCode': '',
|
||||||
|
'cdDepartment': '',
|
||||||
|
'countryCode': '404',
|
||||||
|
},
|
||||||
'bPhoto': False,
|
'bPhoto': False,
|
||||||
'bLeaveAlone': False,
|
'bLeaveAlone': False,
|
||||||
'dietcode': '',
|
'dietcode': '',
|
||||||
|
|
|
@ -17,5 +17,8 @@ def test_catalog_general_loisirs(conn, update_data):
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
assert resp.json()['err'] == 0
|
assert resp.json()['err'] == 0
|
||||||
|
|
||||||
# still not nature code defined on LOISIR activities
|
[x['text'] for x in resp.json()['data']] == [
|
||||||
assert len(resp.json()['data']) == 0
|
'TEST ECOLE DES SPORTS 22/23 SEMESTRE 2 - MULTIACTIVITES, MERCREDI - 13h45/17h - 8/15Ans, ARGOULETS',
|
||||||
|
'TEST ECOLE DES SPORTS 22/23 SEMESTRE 2 - MULTIACTIVITES, MERCREDI - 14h/16h30 - 10/15Ans, LA RAMEE',
|
||||||
|
'TEST ECOLE DES SPORTS 22/23 SEMESTRE 2 - MULTIACTIVITES, MERCREDI - 15h30/17h - 8/15Ans, ARGOULETS',
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in New Issue