Skip to content

Commit

Permalink
Rename the custom interface settings file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgax committed Sep 20, 2024
1 parent d092770 commit 3205be2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions tests/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3205be2

Please sign in to comment.