diff --git a/tests_asyncio/test_objecttype.py b/tests_asyncio/test_objecttype.py new file mode 100644 index 00000000..8ec06435 --- /dev/null +++ b/tests_asyncio/test_objecttype.py @@ -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 + +