diff --git a/app/models/but_refcomp.py b/app/models/but_refcomp.py index ec16eeff..e8b9f0f3 100644 --- a/app/models/but_refcomp.py +++ b/app/models/but_refcomp.py @@ -420,6 +420,7 @@ parcours_formsemestre = db.Table( class ApcParcours(db.Model, XMLModel): + "Un parcours BUT" id = db.Column(db.Integer, primary_key=True) referentiel_id = db.Column( db.Integer, db.ForeignKey("apc_referentiel_competences.id"), nullable=False diff --git a/tests/api/setup_test_api.py b/tests/api/setup_test_api.py index ab41f830..8cfce023 100644 --- a/tests/api/setup_test_api.py +++ b/tests/api/setup_test_api.py @@ -29,7 +29,7 @@ CHECK_CERTIFICATE = bool(os.environ.get("CHECK_CERTIFICATE", False)) SCODOC_URL = os.environ["SCODOC_URL"] or "http://localhost:5000" API_URL = SCODOC_URL + "/ScoDoc/api" API_USER = os.environ.get("API_USER", "test") -API_PASSWORD = os.environ.get("API_PASSWD", "test") +API_PASSWORD = os.environ.get("API_PASSWORD", os.environ.get("API_PASSWD", "test")) API_USER_ADMIN = os.environ.get("API_USER_ADMIN", "admin_api") API_PASSWORD_ADMIN = os.environ.get("API_PASSWD_ADMIN", "admin_api") DEPT_ACRONYM = "TAPI"