Coverage for netbox/graphql/apps.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-10 18:35 +0000

1from django.apps import AppConfig 

2 

3 

4class GraphQLConfig(AppConfig): 

5 name = 'netbox.graphql' 

6 label = 'netbox_graphql' 

7 

8 def ready(self): 

9 # Runs after every plugin's ready(), so schema errors fail django.setup() instead of the first request. 

10 from netbox.graphql import schema # noqa: F401 

11 from netbox.graphql.utils import validate_extension_targets 

12 

13 validate_extension_targets()