diff --git a/tests/test_wagtail_hooks.py b/tests/test_wagtail_hooks.py index 5318969..88957d1 100644 --- a/tests/test_wagtail_hooks.py +++ b/tests/test_wagtail_hooks.py @@ -9,9 +9,13 @@ @pytest.mark.django_db class TestIndexEntryAdminURLFinder(WagtailTestUtils): - def test_construct_edit_url(self): finder = IndexEntryAdminURLFinder() - instance = streamfieldindex.models.IndexEntry(page=PageFactory(), block_type="text", block_value="Hello, world!", block_path="content",) + instance = streamfieldindex.models.IndexEntry( + page=PageFactory(), + block_type="text", + block_value="Hello, world!", + block_path="content", + ) expected_url = reverse("wagtailadmin_pages:edit", args=[instance.page.id]) - assert finder.construct_edit_url(instance) == expected_url \ No newline at end of file + assert finder.construct_edit_url(instance) == expected_url