mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
server: deduplicate some pytests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2988 GitOrigin-RevId: 018903d81c6025da2d9eb78aad4762a78f1f6c69
This commit is contained in:
parent
12335bce91
commit
3fc34aa028
@ -1,18 +0,0 @@
|
||||
description: Select query on table which is not tracked
|
||||
url: /v1/graphql
|
||||
status: 200
|
||||
response:
|
||||
errors:
|
||||
- extensions:
|
||||
code: validation-failed
|
||||
path: $.selectionSet.hasura_random
|
||||
message: |-
|
||||
field "hasura_random" not found in type: 'query_root'
|
||||
query:
|
||||
query: |
|
||||
query {
|
||||
hasura_random (order_by: {id: asc}) {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
@ -43,9 +43,6 @@ class TestGraphQLQueryBasicMySQL:
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_quoted_col.yaml')
|
||||
|
||||
def test_non_tracked_table(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_non_tracked_table_err.yaml')
|
||||
|
||||
def test_select_query_non_tracked_table(self, hge_ctx): # may be duplicate of the one above
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_non_tracked_table.yaml')
|
||||
|
||||
def test_col_not_present(self, hge_ctx):
|
||||
@ -72,7 +69,7 @@ class TestGraphQLQueryBasicMySQL:
|
||||
def test_select_query_where(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_where.yaml')
|
||||
|
||||
def test_select_query_where(self, hge_ctx):
|
||||
def test_nested_select_query_where(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/nested_select_where_query_author_article.yaml')
|
||||
|
||||
# order by
|
||||
@ -85,44 +82,6 @@ class TestGraphQLQueryBasicMySQL:
|
||||
|
||||
# TODO select_query_author_with_include_directive
|
||||
|
||||
def test_select_query_author_with_skip_include_directive(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_with_skip_include_directive.yaml')
|
||||
|
||||
def test_select_query_author_with_wrong_directive_err(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_with_wrong_directive_err.yaml')
|
||||
|
||||
# views
|
||||
def test_query_search_author_view(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/query_search_author_view.yaml')
|
||||
|
||||
def test_offset_2_limit_1(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/offset_2_limit_1.yaml')
|
||||
|
||||
def test_select_offset_limit(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_limit.yaml')
|
||||
|
||||
def test_select_offset(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_offset.yaml')
|
||||
|
||||
def test_select_limit(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_limit_offset.yaml')
|
||||
|
||||
|
||||
# where clause
|
||||
def test_select_query_where(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_where.yaml')
|
||||
|
||||
def test_select_query_where(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/nested_select_where_query_author_article.yaml')
|
||||
|
||||
# order by
|
||||
def test_select_query_author_order_by(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_order_by.yaml')
|
||||
|
||||
# directives
|
||||
def test_select_query_author_with_skip_directive(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_with_skip_directive.yaml')
|
||||
|
||||
def test_select_query_author_with_skip_include_directive(self, hge_ctx):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_with_skip_include_directive.yaml')
|
||||
|
||||
@ -264,7 +223,7 @@ class TestGraphQLQueryBasicCommon:
|
||||
def test_select_query_author(self, hge_ctx, transport):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author.yaml', transport)
|
||||
|
||||
def test_select_query_author(self, hge_ctx, transport):
|
||||
def test_select_query_author_v1(self, hge_ctx, transport):
|
||||
check_query_f(hge_ctx, self.dir() + '/select_query_author_v1alpha1.yaml', transport)
|
||||
|
||||
def test_select_query_author_quoted_col(self, hge_ctx, transport):
|
||||
|
Loading…
Reference in New Issue
Block a user