chore: clarify test title and assertion

This commit is contained in:
Erik Wrede 2023-07-19 08:59:24 +02:00 committed by GitHub
parent e4cb412767
commit 29eaea4c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class Mutations(graphene.ObjectType):
set_datetime = SetDatetime.Field() set_datetime = SetDatetime.Field()
def test_print_schema(): def test_schema_printable_with_default_datetime_value():
schema = graphene.Schema(query=Query, mutation=Mutations) schema = graphene.Schema(query=Query, mutation=Mutations)
schema_str = print_schema(schema.graphql_schema) schema_str = print_schema(schema.graphql_schema)
assert schema_str, "non-empty schema printed" assert schema_str, "empty schema printed"