Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Ashiq committed Sep 10, 2024
1 parent bc89e3b commit 4937402
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/unit/cms/dashboard/test_wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,18 @@ def test_register_link_props(spy_link_entity_with_href: mock.MagicMock):
"""
# Given
fake_rule = {"to_database_format": {"entity_decorators": {"LINK": {}}}}
fake_converter_rules = {
"contentstate": {"link": fake_rule}
}
fake_converter_rules = {"contentstate": {"link": fake_rule}}
spy_features = mock.MagicMock()
spy_features.converter_rules_by_converter = fake_converter_rules

# When
wagtail_hooks.register_link_props(features=spy_features)

# Then
assert fake_rule["to_database_format"]["entity_decorators"]["LINK"] == spy_link_entity_with_href
assert (
fake_rule["to_database_format"]["entity_decorators"]["LINK"]
== spy_link_entity_with_href
)


class TestLinkEntityWithHref:
Expand Down

0 comments on commit 4937402

Please sign in to comment.