Skip to content

Commit 3917a25

Browse files
committed
Use unittest pytestmark for factory method tests
1 parent 5e050b5 commit 3917a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/creational/test_factory_method.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
)
1414
from tests.marker import unittest
1515

16+
pytestmark = unittest
17+
1618

1719
@pytest.fixture(scope="module")
1820
def circle() -> Shape:
@@ -24,12 +26,10 @@ def square() -> Shape:
2426
return Square()
2527

2628

27-
@unittest
2829
def test_draw_circle(circle: Shape) -> None:
2930
assert circle.draw() == "Circle.draw"
3031

3132

32-
@unittest
3333
def test_draw_square(square: Shape) -> None:
3434
assert square.draw() == "Square.draw"
3535

0 commit comments

Comments
 (0)