Skip to content

Commit 984906a

Browse files
authored
Merge pull request #7509 from opsmill/pog-fix-generate_graphql_object
Reset GraphQL schema between tests
2 parents ff7e2aa + 32d5e83 commit 984906a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/tests/unit/graphql/test_manager.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from infrahub.core import registry
77
from infrahub.core.branch import Branch
8+
from infrahub.core.schema import NodeSchema
89
from infrahub.database import InfrahubDatabase
910
from infrahub.graphql.manager import GraphQLSchemaManager
1011
from infrahub.graphql.registry import registry as graphql_registry
@@ -26,7 +27,12 @@ async def test_generate_interface_object(db: InfrahubDatabase, default_branch: B
2627
assert sorted(result.reference._meta.fields.keys()) == ["description", "display_label", "hfid", "id", "name"]
2728

2829

29-
async def test_generate_graphql_object(db: InfrahubDatabase, default_branch: Branch, criticality_schema):
30+
async def test_generate_graphql_object(
31+
db: InfrahubDatabase,
32+
default_branch: Branch,
33+
criticality_schema: NodeSchema,
34+
reset_graphql_schema_between_tests: None,
35+
) -> None:
3036
schema = registry.schema.get_schema_branch(name=default_branch.name)
3137
gqlm = GraphQLSchemaManager(schema=schema)
3238

0 commit comments

Comments
 (0)