From 9c50d03dd89f2baf35868546960b4a8275dc9692 Mon Sep 17 00:00:00 2001 From: Jean-Marie PLACE Date: Wed, 2 Nov 2022 08:14:00 +0100 Subject: [PATCH] add new fields in tests --- tests/api/samples.csv | 134 ++++++++++++++++++------------------ tests/api/tools_test_api.py | 9 ++- 2 files changed, 74 insertions(+), 69 deletions(-) diff --git a/tests/api/samples.csv b/tests/api/samples.csv index 378218ad..e12b8f9a 100644 --- a/tests/api/samples.csv +++ b/tests/api/samples.csv @@ -1,62 +1,62 @@ reference url permission method content -departements /departements ScoView GET -departements-ids /departements_ids ScoView GET -departement /departement/TAPI ScoView GET -departement /departement/id/1 ScoView GET -departement-etudiants /departement/TAPI/etudiants ScoView GET -departement-etudiants /departement/id/1/etudiants ScoView GET -departement-formsemestres_ids /departement/TAPI/formsemestres_ids ScoView GET -departement-formsemestres_ids /departement/id/1/formsemestres_ids ScoView GET -departement-formsemestres-courants /departement/TAPI/formsemestres_courants?faked_date=2022-07-20 ScoView GET -departement-formsemestres-courants /departement/id/1/formsemestres_courants?faked_date=2022-07-20 ScoView GET +departements /departements GET +departements-ids /departements_ids GET +departement /departement/TAPI GET +departement /departement/id/1 GET +departement-etudiants /departement/TAPI/etudiants GET +departement-etudiants /departement/id/1/etudiants GET +departement-formsemestres_ids /departement/TAPI/formsemestres_ids GET +departement-formsemestres_ids /departement/id/1/formsemestres_ids GET +departement-formsemestres-courants /departement/TAPI/formsemestres_courants GET +departement-formsemestres-courants /departement/id/1/formsemestres_courants GET departement-create /departement/create ScoSuperAdmin POST {"acronym": "NEWONE" , "visible": true} departement-edit /departement/NEWONE/edit ScoSuperAdmin POST {"visible": false} departement-delete /departement/NEWONE/delete ScoSuperAdmin POST -etudiants-courants /etudiants/courants?faked_date=2022-07-20 ScoView GET -etudiants-courants /etudiants/courants/long?faked_date=2022-07-20 ScoView GET -etudiant /etudiant/etudid/11 ScoView GET -etudiant /etudiant/nip/11 ScoView GET -etudiant /etudiant/ine/INE11 ScoView GET -etudiants-clef /etudiants/etudid/11 ScoView GET -etudiants-clef /etudiants/ine/INE11 ScoView GET -etudiants-clef /etudiants/nip/11 ScoView GET -etudiant-formsemestres /etudiant/etudid/11/formsemestres ScoView GET -etudiant-formsemestres /etudiant/ine/INE11/formsemestres ScoView GET -etudiant_formsemestres /etudiant/nip/11/formsemestres ScoView GET -etudiant-formsemestre-bulletin /etudiant/etudid/11/formsemestre/1/bulletin ScoView GET -etudiant-formsemestre-bulletin /etudiant/ine/INE11/formsemestre/1/bulletin ScoView GET -etudiant-formsemestre-bulletin /etudiant/nip/11/formsemestre/1/bulletin ScoView GET -etudiant-formsemestre-bulletin /etudiant/nip/11/formsemestre/1/bulletin/short/pdf ScoView GET -etudiant-formsemestre-groups /etudiant/etudid/11/formsemestre/1/groups ScoView GET -formations /formations ScoView GET -formations_ids /formations_ids ScoView GET -formation /formation/1 ScoView GET -formation-export /formation/1/export ScoView GET -formation-export /formation/1/export_with_ids ScoView GET -formation-referentiel_competences /formation/1/referentiel_competences ScoView GET -moduleimpl /moduleimpl/1 ScoView GET -formsemestre /formsemestre/1 ScoView GET -formsemestres-query /formsemestres/query?annee_scolaire=2022&etape_apo=A2 ScoView GET -formsemestres-query /formsemestres/query?nip=11 ScoView GET -formsemestre-bulletins /formsemestre/1/bulletins ScoView GET -formsemestre-programme /formsemestre/1/programme ScoView GET -formsemestre-etudiants /formsemestre/1/etudiants ScoView GET -formsemestre-etudiants /formsemestre/1/etudiants/long ScoView GET -formsemestre-etudiants-query /formsemestre/1/etudiants/query?etat=D ScoView GET -formsemestre-etat_evals /formsemestre/1/etat_evals ScoView GET -formsemestre-resultats /formsemestre/1/resultats ScoView GET -formsemestre-decisions_jury /formsemestre/1/decisions_jury ScoView GET -formsemestre-partitions /formsemestre/1/partitions ScoView GET -partition /partition/1 ScoView GET -group-etudiants /group/1/etudiants ScoView GET -group-etudiants-query /group/1/etudiants/query?etat=D ScoView GET -moduleimpl-evaluations /moduleimpl/1/evaluations ScoView GET -evaluation-notes /evaluation/1/notes ScoView GET -user /user/1 ScoView GET -users-query /users/query?starts_with=u_ ScoView GET -permissions /permissions ScoView GET -roles /roles ScoView GET -role /role/Observateur ScoView GET +etudiants-courants /etudiants/courants?date_courante=2022-07-20 ScoView GET +etudiants-courants /etudiants/courants/long?date_courante=2022-07-20 ScoView GET +etudiant /etudiant/etudid/11 ScoView GET +etudiant /etudiant/nip/11 ScoView GET +etudiant /etudiant/ine/INE11 ScoView GET +etudiants-clef /etudiants/etudid/11 ScoView GET +etudiants-clef /etudiants/ine/INE11 ScoView GET +etudiants-clef /etudiants/nip/11 ScoView GET +etudiant-formsemestres /etudiant/etudid/11/formsemestres ScoView GET +etudiant-formsemestres /etudiant/ine/INE11/formsemestres ScoView GET +etudiant_formsemestres /etudiant/nip/11/formsemestres ScoView GET +etudiant-formsemestre-bulletin /etudiant/etudid/11/formsemestre/1/bulletin ScoView GET +etudiant-formsemestre-bulletin /etudiant/ine/INE11/formsemestre/1/bulletin ScoView GET +etudiant-formsemestre-bulletin /etudiant/nip/11/formsemestre/1/bulletin ScoView GET +etudiant-formsemestre-bulletin /etudiant/nip/11/formsemestre/1/bulletin/short/pdf ScoView GET +etudiant-formsemestre-groups /etudiant/etudid/11/formsemestre/1/groups ScoView GET +formations /formations ScoView GET +formations_ids /formations_ids ScoView GET +formation /formation/1 ScoView GET +formation-export /formation/1/export ScoView GET +formation-export /formation/1/export_with_ids ScoView GET +formation-referentiel_competences /formation/1/referentiel_competences ScoView GET +moduleimpl /moduleimpl/1 ScoView GET +formsemestre /formsemestre/1 ScoView GET +formsemestres-query /formsemestres/query?annee_scolaire=2022&etape_apo=A2 ScoView GET +formsemestres-query /formsemestres/query?nip=11 ScoView GET +formsemestre-bulletins /formsemestre/1/bulletins ScoView GET +formsemestre-programme /formsemestre/1/programme ScoView GET +formsemestre-etudiants /formsemestre/1/etudiants ScoView GET +formsemestre-etudiants /formsemestre/1/etudiants/long ScoView GET +formsemestre-etudiants-query /formsemestre/1/etudiants/query?etat=D ScoView GET +formsemestre-etat_evals /formsemestre/1/etat_evals ScoView GET +formsemestre-resultats /formsemestre/1/resultats ScoView GET +formsemestre-decisions_jury /formsemestre/1/decisions_jury ScoView GET +formsemestre-partitions /formsemestre/1/partitions ScoView GET +partition /partition/1 ScoView GET +group-etudiants /group/1/etudiants ScoView GET +group-etudiants-query /group/1/etudiants/query?etat=D ScoView GET +moduleimpl-evaluations /moduleimpl/1/evaluations ScoView GET +evaluation-notes /evaluation/1/notes ScoView GET +user /user/1 ScoView GET +users-query /users/query?starts_with=u_ ScoView GET +permissions /permissions ScoView GET +roles /roles ScoView GET +role /role/Observateur ScoView GET group-set_etudiant /group/1/set_etudiant/10 ScoSuperAdmin POST group-remove_etudiant /group/1/remove_etudiant/10 ScoSuperAdmin POST partition-group-create /partition/1/group/create ScoSuperAdmin POST {"group_name": "NEW_GROUP"} @@ -85,15 +85,15 @@ departement-logos /departement/TAPI/logos ScoSuperAdmin GET departement-logos /departement/id/1/logos ScoSuperAdmin GET departement-logo /departement/TAPI/logo/demo ScoSuperAdmin GET departement-logo /departement/id/1/logo/demo ScoSuperAdmin GET -test-pdf /etudiant/nip/11/formsemestre/1/bulletin/pdf ScoView GET -test-pdf /etudiant/nip/11/formsemestre/1/bulletin/pdf ScoView GET -test-pdf /etudiant/etudid/11/formsemestre/1/bulletin/short/pdf ScoView GET -test-pdf /etudiant/ine/INE11/formsemestre/1/bulletin/short/pdf ScoView GET -test-pdf /etudiant/nip/11/formsemestre/1/bulletin/short/pdf ScoView GET -test-pdf /etudiant/etudid/11/formsemestre/1/bulletin/pdf ScoView GET -test-pdf /etudiant/etudid/11/formsemestre/1/bulletin/short ScoView GET -test-pdf /etudiant/ine/INE11/formsemestre/1/bulletin/short ScoView GET -test-pdf /etudiant/nip/11/formsemestre/1/bulletin/short ScoView GET -test-pdf /etudiant/etudid/11/formsemestre/1/bulletin ScoView GET -test-pdf /etudiant/ine/INE11/formsemestre/1/bulletin ScoView GET -test-pdf /etudiant/nip/11/formsemestre/1/bulletin ScoView GET +test-pdf /etudiant/nip/11/formsemestre/1/bulletin/pdf ScoView GET +test-pdf /etudiant/nip/11/formsemestre/1/bulletin/pdf ScoView GET +test-pdf /etudiant/etudid/11/formsemestre/1/bulletin/short/pdf ScoView GET +test-pdf /etudiant/ine/INE11/formsemestre/1/bulletin/short/pdf ScoView GET +test-pdf /etudiant/nip/11/formsemestre/1/bulletin/short/pdf ScoView GET +test-pdf /etudiant/etudid/11/formsemestre/1/bulletin/pdf ScoView GET +test-pdf /etudiant/etudid/11/formsemestre/1/bulletin/short ScoView GET +test-pdf /etudiant/ine/INE11/formsemestre/1/bulletin/short ScoView GET +test-pdf /etudiant/nip/11/formsemestre/1/bulletin/short ScoView GET +test-pdf /etudiant/etudid/11/formsemestre/1/bulletin ScoView GET +test-pdf /etudiant/ine/INE11/formsemestre/1/bulletin ScoView GET +test-pdf /etudiant/nip/11/formsemestre/1/bulletin ScoView GET diff --git a/tests/api/tools_test_api.py b/tests/api/tools_test_api.py index 64bfd358..7201031b 100644 --- a/tests/api/tools_test_api.py +++ b/tests/api/tools_test_api.py @@ -153,13 +153,18 @@ FORMSEMESTRE_FIELDS = [ "semestre_id", "bul_hide_xml", "elt_annee_apo", - "block_moyennes", - "block_moyenne_generale" "formsemestre_id", + "block_moyenne_generale", + "formsemestre_id", "titre_num", "titre_formation", "date_debut_iso", "date_fin_iso", "responsables", + "parcours", + "departement", + "formation", + "etape_apo", + "block_moyennes", ] FSEM_FIELDS = {