graphql-engine/server/tests-py/test_heterogeneous.py
Samir Talwar bff1309344 server/tests-py: Make HGECtxGQLServer a fixture.
Starting it and stopping it for the various tests that actually use it.

There are only a few.

This also removes some dead code and fixes warnings in _test_webhook_request_context.py_.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5846
GitOrigin-RevId: 7760467f9de7b1f9718e7482275c298eeaa3ad3a
2022-09-14 21:42:40 +00:00

20 lines
494 B
Python

#!/usr/bin/env python3
import pytest
from validate import check_query_f
@pytest.mark.parametrize('transport', ['http', 'websocket'])
@pytest.mark.usefixtures(
'gql_server',
'per_class_db_schema_for_mutation_tests',
'per_method_db_data_for_mutation_tests',
)
class TestHeterogeneousQuery:
@classmethod
def dir(cls):
return 'queries/heterogeneous'
def test_basic(self, hge_ctx, transport):
check_query_f(hge_ctx, self.dir() + '/basic.yaml', transport)