File tree 1 file changed +18
-0
lines changed
backend/src/openarchiefbeheer/destruction/tests/endpoints
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from django .contrib .auth .models import Group
4
4
from django .core import mail
5
+ from django .test import tag
5
6
from django .utils .translation import gettext_lazy as _
6
7
7
8
from rest_framework import status
@@ -365,3 +366,20 @@ def test_cant_add_more_than_5_co_reviewers(self):
365
366
_ ("The maximum number of allowed co-reviewers is %(max_co_reviewers)s." )
366
367
% {"max_co_reviewers" : MAX_NUMBER_CO_REVIEWERS },
367
368
)
369
+
370
+ @tag ("gh-493" )
371
+ def test_options_method (self ):
372
+ destruction_list = DestructionListFactory .create ()
373
+ assignee = DestructionListAssigneeFactory .create (
374
+ destruction_list = destruction_list ,
375
+ )
376
+
377
+ self .client .force_authenticate (user = assignee .user )
378
+ response = self .client .options (
379
+ reverse (
380
+ "api:co-reviewers-list" ,
381
+ kwargs = {"destruction_list_uuid" : destruction_list .uuid },
382
+ ),
383
+ )
384
+
385
+ self .assertEqual (status .HTTP_200_OK , response .status_code )
You can’t perform that action at this time.
0 commit comments