@@ -117,7 +117,8 @@ def assert_response(response, status):
117
117
@pytest .mark .django_db
118
118
@pytest .mark .parametrize ('model_name' , collab_models .keys ())
119
119
def test_empty_lists (client , model_name ):
120
- response = client .get ('/collab/{}/' .format (model_name ))
120
+ response = client .get ('/collab/{}/' .format (model_name ),
121
+ content_type = "application/json" )
121
122
assert_response (response , status .HTTP_200_OK )
122
123
json_response = response .json ()
123
124
assert json_response == []
@@ -130,7 +131,8 @@ def test_model_guest_list(client, admin_user, model_name):
130
131
obj = create_model (model_name , admin_user )
131
132
obj .save ()
132
133
133
- response = client .get ('/collab/{}/' .format (model_name ))
134
+ response = client .get ('/collab/{}/' .format (model_name ),
135
+ content_type = "application/json" )
134
136
assert_response (response , status .HTTP_200_OK )
135
137
dct_list = response .json ()
136
138
dct = dct_list [- 1 ]
@@ -160,5 +162,6 @@ def test_model_creation(client, admin_client, admin_user, model_name):
160
162
assert_response (response , status .HTTP_201_CREATED )
161
163
projects_created = [response .json ()]
162
164
163
- response = client .get ('/collab/{}/' .format (model_name ))
165
+ response = client .get ('/collab/{}/' .format (model_name ),
166
+ content_type = "application/json" )
164
167
assert_eq (response .json (), projects_created )
0 commit comments