diff --git a/graphene/types/tests/test_objecttype.py b/graphene/types/tests/test_objecttype.py index 2acb578f..68b8dd8a 100644 --- a/graphene/types/tests/test_objecttype.py +++ b/graphene/types/tests/test_objecttype.py @@ -265,3 +265,17 @@ def test_abstract_objecttype_can_str(): field = MyScalar() assert str(MyObjectType) == "MyObjectType" + + +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 diff --git a/tests_py36/test_objecttype.py b/tests_py36/test_objecttype.py deleted file mode 100644 index bce38d94..00000000 --- a/tests_py36/test_objecttype.py +++ /dev/null @@ -1,15 +0,0 @@ -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 diff --git a/tox.ini b/tox.ini index 6c672705..6581d340 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ deps = setenv = PYTHONPATH = .:{envdir} commands = - py{36,37}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs} + py{36,37}: py.test --cov=graphene graphene examples tests_asyncio {posargs} [testenv:pre-commit] basepython=python3.6