@@ -40,7 +40,8 @@ def setUp(self):
4040 )
4141
4242 def test_attribute_rendering_strategy (self ):
43- with override_settings (JSON_API_NESTED_SERIALIZERS_RENDERING_STRATEGY = ATTRIBUTE_RENDERING_STRATEGY ):
43+ with override_settings (
44+ JSON_API_NESTED_SERIALIZERS_RENDERING_STRATEGY = ATTRIBUTE_RENDERING_STRATEGY ):
4445 response = self .client .get (self .list_url )
4546
4647 expected = {
@@ -81,7 +82,8 @@ def test_attribute_rendering_strategy(self):
8182 assert expected == response .json ()
8283
8384 def test_relations_rendering_strategy (self ):
84- with override_settings (JSON_API_NESTED_SERIALIZERS_RENDERING_STRATEGY = RELATIONS_RENDERING_STRATEGY ):
85+ with override_settings (
86+ JSON_API_NESTED_SERIALIZERS_RENDERING_STRATEGY = RELATIONS_RENDERING_STRATEGY ):
8587 response = self .client .get (self .list_url )
8688
8789 expected = {
@@ -122,14 +124,15 @@ def test_relations_rendering_strategy(self):
122124 assert expected == response .json ()
123125
124126 def test_relations_rendering_strategy_included (self ):
125- with override_settings (JSON_API_NESTED_SERIALIZERS_RENDERING_STRATEGY = RELATIONS_RENDERING_STRATEGY ):
127+ with override_settings (
128+ JSON_API_NESTED_SERIALIZERS_RENDERING_STRATEGY = RELATIONS_RENDERING_STRATEGY ):
126129 response = self .client .get (self .list_url , data = {'include' : 'comments,comments.entry' })
127130
128131 expected = {
129132 "links" : {
130- "first" : "http://testserver/authors-nested?include=comments%2Ccomments.entry&page%5Bnumber%5D=1" ,
131- "last" : "http://testserver/authors-nested?include=comments%2Ccomments.entry&page%5Bnumber%5D=5" ,
132- "next" : "http://testserver/authors-nested?include=comments%2Ccomments.entry&page%5Bnumber%5D=2" ,
133+ "first" : "http://testserver/authors-nested?include=comments%2Ccomments.entry&page%5Bnumber%5D=1" , # NoQA
134+ "last" : "http://testserver/authors-nested?include=comments%2Ccomments.entry&page%5Bnumber%5D=5" , # NoQA
135+ "next" : "http://testserver/authors-nested?include=comments%2Ccomments.entry&page%5Bnumber%5D=2" , # NoQA
133136 "prev" : None
134137 },
135138 "data" : [
0 commit comments