From 3205be23134cbb8f504aa5bdd9de6d67495f975e Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Fri, 20 Sep 2024 10:32:22 +0300 Subject: [PATCH] Rename the custom interface settings file The settings file will contain an override for the default snippet interface, in addition to the default page interface, so we're renaming it up front here. --- ...page_interface.py => settings_custom_interfaces.py} | 0 tests/test_interfaces.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename tests/{settings_custom_page_interface.py => settings_custom_interfaces.py} (100%) diff --git a/tests/settings_custom_page_interface.py b/tests/settings_custom_interfaces.py similarity index 100% rename from tests/settings_custom_page_interface.py rename to tests/settings_custom_interfaces.py diff --git a/tests/test_interfaces.py b/tests/test_interfaces.py index 7cce64b8..4e3dd23b 100644 --- a/tests/test_interfaces.py +++ b/tests/test_interfaces.py @@ -11,8 +11,8 @@ @skipIf( - os.getenv("DJANGO_SETTINGS_MODULE") == "settings_custom_page_interface", - "Cannot run with settings_custom_page_interface", + os.getenv("DJANGO_SETTINGS_MODULE") == "settings_custom_interfaces", + "Cannot run with settings_custom_interfaces", ) class InterfacesTestCase(BaseGrappleTestWithIntrospection): @classmethod @@ -99,10 +99,10 @@ def test_schema_for_django_model_with_graphql_interfaces(self): @tag("needs-custom-settings") @skipUnless( - os.getenv("DJANGO_SETTINGS_MODULE") == "settings_custom_page_interface", - "Needs settings_custom_page_interface", + os.getenv("DJANGO_SETTINGS_MODULE") == "settings_custom_interfaces", + "Needs settings_custom_interfaces", ) -class CustomPageInterfaceTestCase(BaseGrappleTestWithIntrospection): +class CustomInterfacesTestCase(BaseGrappleTestWithIntrospection): def test_schema_with_custom_page_interface(self): results = self.introspect_schema_by_type("BlogPage") self.assertListEqual(