api_entreprise: add assertions in entreprises endpoint test (#72961)
This commit is contained in:
parent
a1600961af
commit
5ec431d6c0
|
@ -80,6 +80,7 @@ ENTREPRISES_RESPONSE = {
|
|||
"code_effectif_entreprise": "31",
|
||||
"date_creation": 891381600,
|
||||
"categorie_entreprise": "PME",
|
||||
"diffusable_commercialement": True,
|
||||
"tranche_effectif_salarie_entreprise": {
|
||||
"de": 200,
|
||||
"a": 249,
|
||||
|
@ -297,10 +298,25 @@ def test_entreprises_endpoint(app, resource):
|
|||
assert data['entreprise']['categorie_entreprise'] == 'PME'
|
||||
assert data['entreprise']['numero_tva_intracommunautaire'] == 'FR16418166096'
|
||||
assert data['entreprise']['siret_siege_social'] == '41816609600051'
|
||||
assert data['entreprise']['forme_juridique'] == 'SA à directoire (s.a.i.)'
|
||||
assert data['entreprise']['forme_juridique_code'] == '5699'
|
||||
assert data['entreprise']['siren'] == '418166096'
|
||||
assert data['entreprise']['date_creation'] == '1998-03-31'
|
||||
assert data['entreprise']['mandataires_sociaux'][0]['date_naissance'] == '1965-01-27'
|
||||
assert data['entreprise']['diffusable_commercialement'] is True
|
||||
assert data['entreprise']['naf_entreprise'] == '6202A'
|
||||
assert data['entreprise']['libelle_naf_entreprise'] == 'Conseil en systèmes et logiciels informatiques'
|
||||
assert data['entreprise']['raison_sociale'] == 'OCTO-TECHNOLOGY'
|
||||
assert data['entreprise']['tranche_effectif_salarie_entreprise']['intitule'] == '200 à 249 salariés'
|
||||
|
||||
assert 'mandataires_sociaux' in data['entreprise']
|
||||
mandataires_sociaux = data['entreprise']['mandataires_sociaux']
|
||||
assert mandataires_sociaux[0]['date_naissance'] == '1965-01-27'
|
||||
assert mandataires_sociaux[0]['nom'] == 'HISQUIN'
|
||||
assert mandataires_sociaux[0]['prenom'] == 'FRANCOIS'
|
||||
assert mandataires_sociaux[0]['fonction'] == 'PRESIDENT DU DIRECTOIRE'
|
||||
assert mandataires_sociaux[1]['nom'] == ''
|
||||
assert mandataires_sociaux[1]['prenom'] == ''
|
||||
assert mandataires_sociaux[1]['fonction'] == 'COMMISSAIRE AUX COMPTES SUPPLEANT'
|
||||
|
||||
assert 'etablissement_siege' in data
|
||||
assert data['etablissement_siege']['siret'] == '41816609600051'
|
||||
|
@ -310,6 +326,10 @@ def test_entreprises_endpoint(app, resource):
|
|||
assert data['etablissement_siege']['adresse']['code_postal'] == '75008'
|
||||
assert data['etablissement_siege']['adresse']['localite'] == 'PARIS 8'
|
||||
assert data['etablissement_siege']['adresse']['code_insee_localite'] == '75108'
|
||||
assert data['etablissement_siege']['adresse']['l1'] == 'OCTO TECHNOLOGY'
|
||||
assert data['etablissement_siege']['adresse']['l4'] == '50 AVENUE DES CHAMPS ELYSEES'
|
||||
assert data['etablissement_siege']['adresse']['l6'] == '75008 PARIS'
|
||||
assert data['etablissement_siege']['adresse']['l7'] == 'FRANCE'
|
||||
assert data['etablissement_siege']['date_mise_a_jour'] == '2015-12-03'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue