@@ -117,7 +117,8 @@ def assert_response(response, status):
117117@pytest .mark .django_db
118118@pytest .mark .parametrize ('model_name' , collab_models .keys ())
119119def 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" )
121122 assert_response (response , status .HTTP_200_OK )
122123 json_response = response .json ()
123124 assert json_response == []
@@ -130,7 +131,8 @@ def test_model_guest_list(client, admin_user, model_name):
130131 obj = create_model (model_name , admin_user )
131132 obj .save ()
132133
133- response = client .get ('/collab/{}/' .format (model_name ))
134+ response = client .get ('/collab/{}/' .format (model_name ),
135+ content_type = "application/json" )
134136 assert_response (response , status .HTTP_200_OK )
135137 dct_list = response .json ()
136138 dct = dct_list [- 1 ]
@@ -160,5 +162,6 @@ def test_model_creation(client, admin_client, admin_user, model_name):
160162 assert_response (response , status .HTTP_201_CREATED )
161163 projects_created = [response .json ()]
162164
163- response = client .get ('/collab/{}/' .format (model_name ))
165+ response = client .get ('/collab/{}/' .format (model_name ),
166+ content_type = "application/json" )
164167 assert_eq (response .json (), projects_created )
0 commit comments