toulouse-foederis: remove type_emploi data source (#82294)
gitea/passerelle/pipeline/head Build queued...
Details
gitea/passerelle/pipeline/head Build queued...
Details
This commit is contained in:
parent
a3db9b1e35
commit
fe1f40cc7d
|
@ -243,9 +243,8 @@ APPLICATION_SCHEMA = {
|
|||
},
|
||||
'rgpd_agreement': boolean_field(_('RGPD agreement.')),
|
||||
'job_types': {
|
||||
'description': _("IDs of elements of the data source 'type-emploi'."),
|
||||
'type': 'array',
|
||||
'items': {'type': 'string', 'pattern': '^[0-9]*$'},
|
||||
'description': _('Wanted job types'),
|
||||
'type': 'string',
|
||||
},
|
||||
'job_realms': {
|
||||
'description': _("IDs of elements of the data source 'domaine-emploi'."),
|
||||
|
@ -489,7 +488,6 @@ class Resource(BaseResource, HTTPResource):
|
|||
('civilite', 'data/civilite', None, 200),
|
||||
('nationalite', 'data/nationalite1', None, 200),
|
||||
('situation_actuelle', 'data/situation_actuelle', None, 200),
|
||||
('type_emploi', 'data/type_emploi', None, 200),
|
||||
('domaine_emploi', 'data/domaine_emploi', None, 200),
|
||||
('sous_domaine_emploi', 'data/sous_domaine_emploi', 'domaine_emploi', 200),
|
||||
('emploi', 'custom/emploi', 'sous_domaine_emploi', None),
|
||||
|
@ -503,7 +501,6 @@ class Resource(BaseResource, HTTPResource):
|
|||
'nationalite': 'R1249730',
|
||||
'situation_actuelle': 'R1258320',
|
||||
'annonce': 'R14848305',
|
||||
'type_emploi': 'R1249707',
|
||||
'domaine_emploi': 'R60845221',
|
||||
'sous_domaine_emploi': 'R60845244',
|
||||
'emploi': 'R15017962',
|
||||
|
@ -646,7 +643,7 @@ class Resource(BaseResource, HTTPResource):
|
|||
self.REFERENTIELS_FKEYS['origine_candidature']: _get_id('origin'),
|
||||
'precision_origine_candidature': post_data.get('origin_precisions', None),
|
||||
'accord_RGPD': get_bool(post_data.get('rgpd_agreement', False)),
|
||||
self.REFERENTIELS_FKEYS['type_emploi']: [int(id) for id in post_data.get('job_types', [])],
|
||||
'type_emploi_souhaite': post_data.get('job_types', None),
|
||||
self.REFERENTIELS_FKEYS['domaine_emploi']: [int(id) for id in post_data.get('job_realms', [])],
|
||||
self.REFERENTIELS_FKEYS['sous_domaine_emploi']: [
|
||||
int(id) for id in post_data.get('job_families', [])
|
||||
|
|
|
@ -37,11 +37,6 @@ def get_json_content(name):
|
|||
|
||||
|
||||
HTTP_MOCKS = {
|
||||
'type-emploi': {
|
||||
'path': r'^/.*/data/type_emploi$',
|
||||
'query': 'viewIntegrationName=api_publik&count=200',
|
||||
'content': get_json_content('type_emploi'),
|
||||
},
|
||||
'origine-candidature': {
|
||||
'path': r'^/.*/data/origine_candidature$',
|
||||
'query': 'viewIntegrationName=api_publik&count=200',
|
||||
|
@ -250,7 +245,6 @@ class TestEndpoints:
|
|||
'civilite',
|
||||
'nationalite',
|
||||
'situation-actuelle',
|
||||
'type-emploi',
|
||||
'domaine-emploi',
|
||||
'sous-domaine-emploi',
|
||||
'emploi',
|
||||
|
@ -281,7 +275,7 @@ class TestEndpoints:
|
|||
response = app.get('/toulouse-foederis/foederis/announce/')
|
||||
content = response.json
|
||||
assert content['err'] == 0
|
||||
assert len(content['data_sources']) == 10
|
||||
assert len(content['data_sources']) == 9
|
||||
data = content['data']
|
||||
assert len(data) == 5
|
||||
|
||||
|
@ -442,7 +436,7 @@ class TestEndpoints:
|
|||
'complement_information_candidature': 'I need money.',
|
||||
'R1261279': 1561049,
|
||||
'accord_RGPD': True,
|
||||
'R1249707': [157193, 157194],
|
||||
'type_emploi_souhaite': 'Emploi saisonnier',
|
||||
'R60845221': [5776395, 5776396],
|
||||
'R60845244': [5776394, 5776395],
|
||||
'R15017962': [],
|
||||
|
@ -483,7 +477,7 @@ class TestEndpoints:
|
|||
'internship_duration': '2h',
|
||||
'job_families': ['5776394', '5776395'],
|
||||
'job_realms': ['5776395', '5776396'],
|
||||
'job_types': ['157193', '157194'],
|
||||
'job_types': 'Emploi saisonnier',
|
||||
'last_course_taken': 'Terminale',
|
||||
'last_name': 'Doe',
|
||||
'last_obtained_diploma': 'BAC',
|
||||
|
|
Loading…
Reference in New Issue