Skip to content

Commit d52d437

Browse files
author
Batiste Bieler
committed
Fix the functionnal test
1 parent 8b963da commit d52d437

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/tests/test_functionnal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ def test_page_admin_view(self):
375375
response = c.get(url)
376376
self.assertEqual(response.status_code, 200)
377377

378-
url = '/admin/pages/page/%d/get-content/slug/' % page.id
378+
url = '/admin/pages/page/%d/get-content/%d/' % (page.id,
379+
Content.objects.get_content_slug_by_slug('page-1').id)
380+
379381
response = c.get(url)
380382
self.assertEqual(response.status_code, 200)
381383

0 commit comments

Comments
 (0)