Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross-Clark committed Jul 16, 2024
1 parent a75ca7c commit 2d5cbd6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
assert finder.construct_edit_url(instance) == expected_url

0 comments on commit 2d5cbd6

Please sign in to comment.