Skip to content

Commit 7fc5250

Browse files
committed
This is not really needed in tests
1 parent 7988cb6 commit 7fc5250

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

infrahub_sdk/testing/schemas/file_object.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pytest
22

33
from infrahub_sdk import InfrahubClient, InfrahubClientSync
4-
from infrahub_sdk.exceptions import GraphQLError
54
from infrahub_sdk.node import InfrahubNode, InfrahubNodeSync
65
from infrahub_sdk.schema.main import AttributeKind, NodeSchema, RelationshipKind, SchemaRoot
76
from infrahub_sdk.schema.main import AttributeSchema as Attr
@@ -75,17 +74,13 @@ def schema_file_object_base(self, schema_file_contract: NodeSchema, schema_circu
7574

7675
@pytest.fixture(scope="class")
7776
async def load_file_object_schema(self, client: InfrahubClient, schema_file_object_base: SchemaRoot) -> None:
78-
resp = await client.schema.load(schemas=[schema_file_object_base.to_schema_dict()], wait_until_converged=True)
79-
if resp.errors:
80-
raise GraphQLError(errors=[resp.errors])
77+
await client.schema.load(schemas=[schema_file_object_base.to_schema_dict()], wait_until_converged=True)
8178

8279
@pytest.fixture(scope="class")
8380
def load_file_object_schema_sync(
8481
self, client_sync: InfrahubClientSync, schema_file_object_base: SchemaRoot
8582
) -> None:
86-
resp = client_sync.schema.load(schemas=[schema_file_object_base.to_schema_dict()], wait_until_converged=True)
87-
if resp.errors:
88-
raise GraphQLError(errors=[resp.errors])
83+
client_sync.schema.load(schemas=[schema_file_object_base.to_schema_dict()], wait_until_converged=True)
8984

9085
@pytest.fixture(scope="class")
9186
async def circuit_main(

0 commit comments

Comments
 (0)