|
1 | 1 | import pytest |
2 | 2 |
|
3 | 3 | from infrahub_sdk import InfrahubClient, InfrahubClientSync |
4 | | -from infrahub_sdk.exceptions import GraphQLError |
5 | 4 | from infrahub_sdk.node import InfrahubNode, InfrahubNodeSync |
6 | 5 | from infrahub_sdk.schema.main import AttributeKind, NodeSchema, RelationshipKind, SchemaRoot |
7 | 6 | 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 |
75 | 74 |
|
76 | 75 | @pytest.fixture(scope="class") |
77 | 76 | 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) |
81 | 78 |
|
82 | 79 | @pytest.fixture(scope="class") |
83 | 80 | def load_file_object_schema_sync( |
84 | 81 | self, client_sync: InfrahubClientSync, schema_file_object_base: SchemaRoot |
85 | 82 | ) -> 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) |
89 | 84 |
|
90 | 85 | @pytest.fixture(scope="class") |
91 | 86 | async def circuit_main( |
|
0 commit comments