Skip to content

Commit

Permalink
Run pydantic tests on multiple python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Aug 9, 2023
1 parent af6e1e4 commit 326224b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def tests_integrations(session: Session, integration: str) -> None:
session.run("pytest", *COMMON_PYTEST_OPTIONS, "-m", integration)


@session(python=["3.11"], name="Pydantic tests", tags=["tests"])
@session(python=PYTHON_VERSIONS, name="Pydantic tests", tags=["tests"])
@nox.parametrize("pydantic", ["1.10", "2.0.3"])
def test_pydantic(session: Session, pydantic: str) -> None:
session.run_always("poetry", "install", external=True)
Expand Down
12 changes: 0 additions & 12 deletions tests/experimental/pydantic/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,3 @@ class Type:

assert field.python_name == "field"
assert field.type == Literal["field"]


def test_typing_union_type_import():
from strawberry.experimental.pydantic.fields import TypingUnionType

assert TypingUnionType


def test_typing_generic_alias_import():
from strawberry.experimental.pydantic.fields import TypingGenericAlias

assert TypingGenericAlias

0 comments on commit 326224b

Please sign in to comment.