mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-28 21:13:47 +03:00
Remove print statement
This commit is contained in:
parent
34f5978446
commit
c32340662c
|
@ -486,7 +486,6 @@ def test_should_query_node_filtering_with_distinct_queryset():
|
||||||
|
|
||||||
result = schema.execute(query)
|
result = schema.execute(query)
|
||||||
assert not result.errors
|
assert not result.errors
|
||||||
print(result.data)
|
|
||||||
assert result.data == expected
|
assert result.data == expected
|
||||||
|
|
||||||
|
|
||||||
|
@ -735,7 +734,7 @@ def test_should_query_promise_connectionfields():
|
||||||
|
|
||||||
def resolve_all_reporters(self, info, **args):
|
def resolve_all_reporters(self, info, **args):
|
||||||
return Promise.resolve([Reporter(id=1)])
|
return Promise.resolve([Reporter(id=1)])
|
||||||
|
|
||||||
schema = graphene.Schema(query=Query)
|
schema = graphene.Schema(query=Query)
|
||||||
query = '''
|
query = '''
|
||||||
query ReporterPromiseConnectionQuery {
|
query ReporterPromiseConnectionQuery {
|
||||||
|
@ -783,7 +782,7 @@ def test_should_query_connectionfields_with_last():
|
||||||
|
|
||||||
def resolve_all_reporters(self, info, **args):
|
def resolve_all_reporters(self, info, **args):
|
||||||
return Reporter.objects.all()
|
return Reporter.objects.all()
|
||||||
|
|
||||||
schema = graphene.Schema(query=Query)
|
schema = graphene.Schema(query=Query)
|
||||||
query = '''
|
query = '''
|
||||||
query ReporterLastQuery {
|
query ReporterLastQuery {
|
||||||
|
@ -838,7 +837,7 @@ def test_should_query_connectionfields_with_manager():
|
||||||
|
|
||||||
def resolve_all_reporters(self, info, **args):
|
def resolve_all_reporters(self, info, **args):
|
||||||
return Reporter.objects.all()
|
return Reporter.objects.all()
|
||||||
|
|
||||||
schema = graphene.Schema(query=Query)
|
schema = graphene.Schema(query=Query)
|
||||||
query = '''
|
query = '''
|
||||||
query ReporterLastQuery {
|
query ReporterLastQuery {
|
||||||
|
@ -1071,7 +1070,7 @@ def test_proxy_model_fails():
|
||||||
"""
|
"""
|
||||||
This test asserts that if you try to query for a proxy model,
|
This test asserts that if you try to query for a proxy model,
|
||||||
that query will fail with:
|
that query will fail with:
|
||||||
GraphQLError('Expected value of type "CNNReporterType" but got:
|
GraphQLError('Expected value of type "CNNReporterType" but got:
|
||||||
CNNReporter.',)
|
CNNReporter.',)
|
||||||
|
|
||||||
This is because a proxy model has the identical model definition
|
This is because a proxy model has the identical model definition
|
||||||
|
|
Loading…
Reference in New Issue
Block a user