diff --git a/tests/components/test_get_locations.py b/tests/components/test_get_locations.py index d981d346..7125ceb5 100644 --- a/tests/components/test_get_locations.py +++ b/tests/components/test_get_locations.py @@ -103,10 +103,7 @@ def test_get_locations_apps_setting_list(settings, cache_clear): # noqa: ARG001 "project", ] - expected = [ - ("project.components.hello_world", "HelloWorldView"), - ("components.hello_world", "HelloWorldView") - ] + expected = [("project.components.hello_world", "HelloWorldView"), ("components.hello_world", "HelloWorldView")] actual = get_locations("hello-world") assert expected == actual @@ -141,14 +138,20 @@ def test_get_locations_installed_app_with_app_config(settings, clear_apps, cache "example.coffee.apps.Config", ] - expected = [("example.coffee.components.hello_world", "HelloWorldView"), ("components.hello_world", "HelloWorldView")] + expected = [ + ("example.coffee.components.hello_world", "HelloWorldView"), + ("components.hello_world", "HelloWorldView"), + ] actual = get_locations("hello-world") assert expected == actual # test when the app is in a subdirectory "apps" with Config settings.INSTALLED_APPS[0] = "foo_project.apps.bar_app.apps.Config" - expected_location = [("foo_project.apps.bar_app.components.foo_bar", "FooBarView"), ("components.foo_bar", "FooBarView")] + expected_location = [ + ("foo_project.apps.bar_app.components.foo_bar", "FooBarView"), + ("components.foo_bar", "FooBarView"), + ] actual_location = get_locations("foo-bar") assert expected_location == actual_location @@ -158,6 +161,9 @@ def test_get_locations_installed_app_with_apps(settings, clear_apps, cache_clear settings.INSTALLED_APPS = [ "example.apps.main", ] - expected_location = [("example.apps.main.components.sidebar_menu", "SidebarMenuView"), ("components.sidebar_menu", "SidebarMenuView")] + expected_location = [ + ("example.apps.main.components.sidebar_menu", "SidebarMenuView"), + ("components.sidebar_menu", "SidebarMenuView"), + ] actual_location = get_locations("sidebar-menu") assert expected_location == actual_location diff --git a/tests/views/message/test_message.py b/tests/views/message/test_message.py index 9b7630a0..6f14f817 100644 --- a/tests/views/message/test_message.py +++ b/tests/views/message/test_message.py @@ -128,10 +128,10 @@ def test_message_component_class_not_loaded(client): "unicorn.components.tests.views.fake_components.FakeComponentNotThere", "FakecomponentnotthereView", ), - ( - "components.tests.views.fake_components.FakeComponentNotThere", - "FakecomponentnotthereView", - ), + ( + "components.tests.views.fake_components.FakeComponentNotThere", + "FakecomponentnotthereView", + ), ] assert e.value.locations == expected_locations