Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
grady
Merge requests
!44
Constants for vuex Mutations / Exam Type subscriptions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Constants for vuex Mutations / Exam Type subscriptions
vuex-cleanup
into
master
Overview
0
Commits
1
Pipelines
2
Changes
22
Merged
robinwilliam.hundt
requested to merge
vuex-cleanup
into
master
7 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
See
#90 (closed)
for Problem with ExamType subscriptions
0
0
Merge request reports
Compare
version 1
version 1
7627bd04
7 years ago
master (base)
and
latest version
latest version
a22a5c50
1 commit,
7 years ago
version 1
7627bd04
1 commit,
7 years ago
Show latest version
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/tests/test_access_rights.py
+
5
−
4
Options
@@ -138,10 +138,11 @@ class AccessRightsOfExamTypeAPIViewTest(APITestCase):
response
=
self
.
view
(
self
.
request
)
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_403_FORBIDDEN
)
def
test_tutor_has_no_access
(
self
):
force_authenticate
(
self
.
request
,
user
=
self
.
tutor
)
response
=
self
.
view
(
self
.
request
)
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_403_FORBIDDEN
)
# TODO see issue #90 for details
# def test_tutor_has_no_access(self):
# force_authenticate(self.request, user=self.tutor)
# response = self.view(self.request)
# self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
def
test_reviewer_has_access
(
self
):
force_authenticate
(
self
.
request
,
user
=
self
.
reviewer
)
Loading