From 4937402d1d1044812bbf3dfcd1be8c163aace4ed Mon Sep 17 00:00:00 2001 From: A-Ashiq Date: Tue, 10 Sep 2024 15:14:45 +0100 Subject: [PATCH] Formatting --- tests/unit/cms/dashboard/test_wagtail_hooks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/unit/cms/dashboard/test_wagtail_hooks.py b/tests/unit/cms/dashboard/test_wagtail_hooks.py index ab57fd07a..7d88f444f 100644 --- a/tests/unit/cms/dashboard/test_wagtail_hooks.py +++ b/tests/unit/cms/dashboard/test_wagtail_hooks.py @@ -116,9 +116,7 @@ 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 @@ -126,7 +124,10 @@ def test_register_link_props(spy_link_entity_with_href: mock.MagicMock): 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: