File tree 1 file changed +4
-5
lines changed
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):
117
117
def test_allows_superuser_to_create_project_with_flags (self ):
118
118
self .client .login (username = self .super_user_name ,
119
119
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 )
125
124
self .assertEqual (response .status_code , status .HTTP_201_CREATED )
126
125
self .assertTrue (response .json ().get ('collaborative_annotation' ))
127
126
self .assertTrue (response .json ().get ('randomize_document_order' ))
You can’t perform that action at this time.
0 commit comments