File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,10 @@ def test_allows_superuser_to_create_project(self):
117117 def test_allows_superuser_to_create_project_with_flags (self ):
118118 self .client .login (username = self .super_user_name ,
119119 password = self .super_user_pass )
120- response = self .client .post (self .url , format = 'json' , data = dict (
121- collaborative_annotation = True ,
122- randomize_document_order = True ,
123- ** self .data ,
124- ))
120+ data = dict (self .data )
121+ data ['collaborative_annotation' ] = True
122+ data ['randomize_document_order' ] = True
123+ response = self .client .post (self .url , format = 'json' , data = data )
125124 self .assertEqual (response .status_code , status .HTTP_201_CREATED )
126125 self .assertTrue (response .json ().get ('collaborative_annotation' ))
127126 self .assertTrue (response .json ().get ('randomize_document_order' ))
You can’t perform that action at this time.
0 commit comments