Skip to content

Commit 5556fb8

Browse files
authored
Merge pull request #35 from necaris/better-error-message-on-36
Skip ForwardRef tests if <3.7
2 parents 5388bcf + cff1b97 commit 5556fb8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: [3.7, 3.8]
19+
python-version: [3.6, 3.7, 3.8]
2020
steps:
2121
- uses: actions/checkout@master
2222
- name: Install

tests/test_forward_refs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import typing as T
23
import uuid
34

@@ -6,6 +7,11 @@
67

78
from graphene_pydantic import PydanticObjectType
89

10+
import pytest
11+
12+
if sys.version_info < (3, 7):
13+
pytest.skip("ForwardRefs feature requires Python 3.7+", allow_module_level=True)
14+
915

1016
class FooModel(pydantic.BaseModel):
1117
id: uuid.UUID

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://tox.readthedocs.io/en/latest/example/basic.html#compressing-dependency-matrix
22
[tox]
3-
envlist = py{37,38}-graphene{20,21}-pydantic{1}
3+
envlist = py{36,37,38}-graphene{20,21}-pydantic{1}
44
isolated_build = true
55

66
[testenv]

0 commit comments

Comments
 (0)