From bdaf416ccbc08fb2fc0cabd00c3f90237112c81a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 7 Oct 2022 22:37:06 +0200 Subject: [PATCH] rename env var. API_PASSWORD for API tests --- app/models/but_refcomp.py | 1 + tests/api/setup_test_api.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/but_refcomp.py b/app/models/but_refcomp.py index ec16eeff5..e8b9f0f3f 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 ab41f8308..8cfce023f 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"