Skip to content

Commit e55dddf

Browse files
committed
fix: Remove python3.10 requirement for cov tests
1 parent deb72a1 commit e55dddf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/test_type_coverage_generation.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import sys
43
from dataclasses import dataclass
54
from datetime import date
65
from typing import Literal, Sequence
@@ -14,7 +13,6 @@
1413
from polyfactory.factories.typed_dict_factory import TypedDictFactory
1514

1615

17-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
1816
def test_coverage_count() -> None:
1917
@dataclass
2018
class Profile:
@@ -34,7 +32,6 @@ class ProfileFactory(DataclassFactory[Profile]):
3432
assert isinstance(result, Profile)
3533

3634

37-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
3835
def test_coverage_tuple() -> None:
3936
@dataclass
4037
class Tuple:
@@ -54,7 +51,6 @@ class TupleFactory(DataclassFactory[Tuple]):
5451
assert isinstance(a1, str) and isinstance(b1, float) and isinstance(c1, int)
5552

5653

57-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
5854
def test_coverage_collection() -> None:
5955
@dataclass
6056
class Collective:
@@ -87,7 +83,6 @@ class CollectiveFactory(DataclassFactory[Collective]):
8783
assert {type(v0), type(v1)} == {int, str}
8884

8985

90-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
9186
def test_coverage_literal() -> None:
9287
@dataclass
9388
class Literally:
@@ -106,7 +101,6 @@ class LiterallyFactory(DataclassFactory[Literally]):
106101
assert results[3].literal == 2
107102

108103

109-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
110104
def test_coverage_dict() -> None:
111105
@dataclass
112106
class Thesaurus:
@@ -123,7 +117,6 @@ class ThesaurusFactory(DataclassFactory[Thesaurus]):
123117

124118

125119
@pytest.mark.skip(reason="Does not support recursive types yet.")
126-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
127120
def test_coverage_recursive() -> None:
128121
@dataclass
129122
class Recursive:
@@ -136,7 +129,6 @@ class RecursiveFactory(DataclassFactory[Recursive]):
136129
assert len(results) == 2
137130

138131

139-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
140132
def test_coverage_typed_dict() -> None:
141133
class TypedThesaurus(TypedDict):
142134
number: int
@@ -156,7 +148,6 @@ class TypedThesaurusFactory(TypedDictFactory[TypedThesaurus]):
156148
assert result.keys() == example.keys()
157149

158150

159-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
160151
def test_coverage_typed_dict_field() -> None:
161152
class TypedThesaurus(TypedDict):
162153
number: int
@@ -177,7 +168,6 @@ class TypedThesaurusFactory(TypedDictFactory[TypedThesaurus]):
177168
assert result.keys() == example.keys()
178169

179170

180-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
181171
def test_coverage_values_unique() -> None:
182172
@dataclass
183173
class Unique:
@@ -193,7 +183,6 @@ class UniqueFactory(DataclassFactory[Unique]):
193183
assert results[0].uuid != results[1].uuid
194184

195185

196-
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
197186
def test_coverage_post_generated() -> None:
198187
@dataclass
199188
class Model:

0 commit comments

Comments
 (0)