Skip to content

Commit

Permalink
see if pytest mark order works
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed Jul 11, 2023
1 parent c7a9b8c commit ecd7678
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions tests/experimental/pydantic/schema/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import pytest

pytestmark = pytest.mark.pydantic_v1
import textwrap
from enum import Enum
from typing import List, Optional, Union

import pydantic
import pytest

import strawberry

pytestmark = pytest.mark.pydantic_v1
import strawberry


def test_basic_type_field_list():
Expand Down
7 changes: 4 additions & 3 deletions tests/experimental/pydantic2/schema/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import pytest

pytestmark = pytest.mark.pydantic_v2
import textwrap
from enum import Enum
from typing import List, Optional, Union

import pydantic
import pytest

import strawberry

pytestmark = pytest.mark.pydantic_v2
import strawberry


def test_all_fields():
Expand Down
6 changes: 3 additions & 3 deletions tests/experimental/pydantic2/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import pytest

pytestmark = pytest.mark.pydantic_v2
import dataclasses
from enum import Enum
from typing import Any, List, Optional, Union

import pydantic
import pytest

import strawberry
from strawberry.enum import EnumDefinition
Expand All @@ -13,8 +15,6 @@
from strawberry.types.types import TypeDefinition
from strawberry.union import StrawberryUnion

pytestmark = pytest.mark.pydantic_v2


def test_basic_type_all_fields():
class User(pydantic.BaseModel):
Expand Down

0 comments on commit ecd7678

Please sign in to comment.