@@ -90,7 +90,7 @@ def test_retrieve_expected_form_fields(self):
9090 def test_save_without_cover_image (self ):
9191 data = {
9292 "title_en" : "Title" ,
93- "_position " : "first-child" ,
93+ "treebeard_position " : "first-child" ,
9494 }
9595
9696 url = reverse ("admin:flatpages_flatpage_add" )
@@ -104,7 +104,7 @@ def test_save_without_cover_image(self):
104104 def test_save_with_cover_image (self ):
105105 data = {
106106 "title_en" : "Title" ,
107- "_position " : "first-child" ,
107+ "treebeard_position " : "first-child" ,
108108 "cover_image_author" : "Someone" ,
109109 "cover_image" : get_dummy_uploaded_image ("flatpage_cover.png" ),
110110 }
@@ -135,7 +135,7 @@ def test_save_delete_cover_image(self):
135135 "title_en" : "Title" ,
136136 "cover_image_author" : "" ,
137137 "cover_image-clear" : "on" ,
138- "_position " : "first-child" ,
138+ "treebeard_position " : "first-child" ,
139139 }
140140 url = reverse ("admin:flatpages_flatpage_change" , args = [page .pk ])
141141 response = self .client .post (url , data = data )
@@ -197,7 +197,7 @@ def test_add(self):
197197 add_data = {
198198 "title_en" : "Hello World!" ,
199199 "platform" : "all" ,
200- "_position " : "first-child" ,
200+ "treebeard_position " : "first-child" ,
201201 }
202202
203203 response = self .client .post (
@@ -216,7 +216,7 @@ def test_udpate(self):
216216 change_data = {
217217 "title_en" : "Already exists and changed" ,
218218 "platform" : "mobile" ,
219- "_position " : "first-child" ,
219+ "treebeard_position " : "first-child" ,
220220 }
221221
222222 response = self .client .post (
@@ -234,7 +234,7 @@ def test_save_with_page_is_required_error(self):
234234 add_data = {
235235 "title_en" : "Hello World!" ,
236236 "platform" : "all" ,
237- "_position " : "first-child" ,
237+ "treebeard_position " : "first-child" ,
238238 "target_type" : "page" ,
239239 "page" : "" ,
240240 }
@@ -255,7 +255,7 @@ def test_save_with_link_url_is_required_error(self):
255255 add_data = {
256256 "title_en" : "Hello World!" ,
257257 "platform" : "all" ,
258- "_position " : "first-child" ,
258+ "treebeard_position " : "first-child" ,
259259 "target_type" : "link" ,
260260 link_url_loc_fieldname : "" ,
261261 }
@@ -305,7 +305,7 @@ def test_save_with_thumbnail(self):
305305 change_data = {
306306 "title_en" : "I have a new thumbnail" ,
307307 "platform" : "all" ,
308- "_position " : "first-child" ,
308+ "treebeard_position " : "first-child" ,
309309 "thumbnail" : img ,
310310 }
311311
@@ -339,7 +339,7 @@ def test_save_delete_thumbnail(self):
339339 change_data = {
340340 "title_en" : "I have a new thumbnail" ,
341341 "platform" : "all" ,
342- "_position " : "first-child" ,
342+ "treebeard_position " : "first-child" ,
343343 "thumbnail-clear" : "on" ,
344344 }
345345
0 commit comments