File tree 1 file changed +16
-0
lines changed
backend/src/openarchiefbeheer/selection/tests
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
from unittest .mock import patch
2
2
3
+ from django .test import tag
3
4
from django .utils .translation import gettext_lazy as _
4
5
5
6
from furl import furl
@@ -507,3 +508,18 @@ def test_urls_not_snakelised(self):
507
508
self .assertEqual (
508
509
items .first ().zaak_url , "http://zaken.nl/api/v1/zaken/shouldNotBeSnakeCase"
509
510
)
511
+
512
+ @tag ("gh-493" )
513
+ def test_options_method (self ):
514
+ key = "some-key"
515
+ SelectionItemFactory .create (
516
+ key = key ,
517
+ is_selected = False ,
518
+ zaak_url = "http://zaken.nl/api/v1/zaken/111-111-111" ,
519
+ )
520
+
521
+ self .client .force_login (self .user )
522
+
523
+ response = self .client .options (reverse ("api:selections" , args = [key ]))
524
+
525
+ self .assertEqual (response .status_code , status .HTTP_200_OK )
You can’t perform that action at this time.
0 commit comments