From dc0061fb929b4dbe2abeaff29cc30f2bace7e1b6 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 6 Dec 2023 20:57:24 +0100 Subject: [PATCH] Fix: assiduite unit tests --- tests/api/test_api_permissions.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/api/test_api_permissions.py b/tests/api/test_api_permissions.py index f02e16a11b..1b884b486d 100755 --- a/tests/api/test_api_permissions.py +++ b/tests/api/test_api_permissions.py @@ -49,6 +49,7 @@ def test_permissions(api_headers): "etat": "I", "etudid": 1, "evaluation_id": 1, + "filename": "toto", "formation_id": 1, "formsemestre_id": 1, "group_id": 1, @@ -84,12 +85,12 @@ def test_permissions(api_headers): if any( path.startswith(p) for p in [ - "/ScoDoc/api/justificatif/1/list", - "/ScoDoc/api/justificatif/1/justifies", + "/ScoDoc/api/justificatif/1/list", # demande AbsJustifView + "/ScoDoc/api/justificatif/1/justifies", # demande ScoJustifChange + "/ScoDoc/api/justificatif/1/export", # demande AbsChange ] ): - # On passe la route "api/justificatif/<>/list" car elle nécessite la permission AbsJustifView - # On passe la route "api/justificatif/<>/justifies" car elle nécessite la permission ScoJustifChange + # On passe ces routes spéciales continue r = requests.get(