mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-06-18 21:19:17 +08:00
21 lines
708 B
Python
21 lines
708 B
Python
import pytest
|
|
import yaml
|
|
from validate import check_query_f
|
|
from super_classes import GraphQLEngineTest
|
|
|
|
# @pytest.mark.parametrize("transport", ['http','websocket'])
|
|
# graphql parser can't seem to parse {where: null}, disabling
|
|
# websocket till then
|
|
@pytest.mark.parametrize("transport", ['http'])
|
|
class TestGraphQLValidation(GraphQLEngineTest):
|
|
|
|
def test_null_value(self, hge_ctx, transport):
|
|
check_query_f(hge_ctx, self.dir() + "/null_value_err.yaml", transport)
|
|
|
|
def test_null_variable_value(self, hge_ctx, transport):
|
|
check_query_f(hge_ctx, self.dir() + "/null_variable_value_err.yaml", transport)
|
|
|
|
@classmethod
|
|
def dir(cls):
|
|
return "queries/graphql_validation"
|