Skip to content

Commit

Permalink
Use unittest pytestmark for factory method tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vyahello committed Oct 14, 2020
1 parent 5e050b5 commit 3917a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/creational/test_factory_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
)
from tests.marker import unittest

pytestmark = unittest


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


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


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

Expand Down

0 comments on commit 3917a25

Please sign in to comment.