mirror of
https://github.com/graphql-python/graphene.git
synced 2025-09-21 19:32:33 +03:00
Replicate error with test
This commit is contained in:
parent
1fcdeaac65
commit
bd2f4a3449
19
tests_asyncio/test_objecttype.py
Normal file
19
tests_asyncio/test_objecttype.py
Normal 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user