forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -49,6 +49,7 @@ def test_permissions(api_headers):
|
|||||||
"etat": "I",
|
"etat": "I",
|
||||||
"etudid": 1,
|
"etudid": 1,
|
||||||
"evaluation_id": 1,
|
"evaluation_id": 1,
|
||||||
|
"filename": "toto",
|
||||||
"formation_id": 1,
|
"formation_id": 1,
|
||||||
"formsemestre_id": 1,
|
"formsemestre_id": 1,
|
||||||
"group_id": 1,
|
"group_id": 1,
|
||||||
@ -84,12 +85,12 @@ def test_permissions(api_headers):
|
|||||||
if any(
|
if any(
|
||||||
path.startswith(p)
|
path.startswith(p)
|
||||||
for p in [
|
for p in [
|
||||||
"/ScoDoc/api/justificatif/1/list",
|
"/ScoDoc/api/justificatif/1/list", # demande AbsJustifView
|
||||||
"/ScoDoc/api/justificatif/1/justifies",
|
"/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 ces routes spéciales
|
||||||
# On passe la route "api/justificatif/<>/justifies" car elle nécessite la permission ScoJustifChange
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
r = requests.get(
|
r = requests.get(
|
||||||
|
Loading…
Reference in New Issue
Block a user