From bd2f4a3449551ed056f8d11a15696a7b957428da Mon Sep 17 00:00:00 2001 From: Eran Kampf Date: Fri, 31 May 2019 12:32:07 -0700 Subject: [PATCH] Replicate error with test --- tests_asyncio/test_objecttype.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests_asyncio/test_objecttype.py 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 + +