Replicate error with test

This commit is contained in:
Eran Kampf 2019-05-31 12:32:07 -07:00
parent 1fcdeaac65
commit bd2f4a3449

View File

@ -0,0 +1,19 @@
import pytest
from graphene import Schema, ObjectType, String
def test_objecttype_meta_with_annotations():
class Query(ObjectType):
class Meta:
name: str = 'oops'
hello = String()
def resolve_hello(self, info):
return 'Hello'
schema = Schema(query=Query)
assert schema is not None