graphql-file_upload/app/schema/tests/test_graphql_schema.py
2021-07-07 12:01:59 +02:00

12 lines
245 B
Python

import pytest
from ariadne import gql
from graphql import GraphQLSyntaxError
from ..schema import schema
def test_graphql_schema():
try:
gql(schema)
except GraphQLSyntaxError:
pytest.fail("GraphQL schema are invalid")