Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scodoc_issue_976
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Louis Dormael
scodoc_issue_976
Commits
dc0061fb
Commit
dc0061fb
authored
1 year ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Fix: assiduite unit tests
parent
96420c53
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/api/test_api_permissions.py
+5
-4
5 additions, 4 deletions
tests/api/test_api_permissions.py
with
5 additions
and
4 deletions
tests/api/test_api_permissions.py
+
5
−
4
View file @
dc0061fb
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment