2020-10-07 13:23:17 +03:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
2022-09-15 00:41:28 +03:00
|
|
|
from validate import check_query_f
|
2020-10-07 13:23:17 +03:00
|
|
|
|
2022-09-15 00:41:28 +03:00
|
|
|
@pytest.mark.parametrize('transport', ['http', 'websocket'])
|
|
|
|
@pytest.mark.usefixtures(
|
|
|
|
'gql_server',
|
2020-10-07 13:23:17 +03:00
|
|
|
'per_class_db_schema_for_mutation_tests',
|
2022-09-15 00:41:28 +03:00
|
|
|
'per_method_db_data_for_mutation_tests',
|
2020-10-07 13:23:17 +03:00
|
|
|
)
|
|
|
|
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)
|