From 3917a253ca27dacfcc35adda36ace548ab826d7d Mon Sep 17 00:00:00 2001 From: Volodymyr Yahello Date: Wed, 14 Oct 2020 22:54:31 +0300 Subject: [PATCH] Use unittest pytestmark for factory method tests --- tests/creational/test_factory_method.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/creational/test_factory_method.py b/tests/creational/test_factory_method.py index 2483a9e..7e6a083 100644 --- a/tests/creational/test_factory_method.py +++ b/tests/creational/test_factory_method.py @@ -13,6 +13,8 @@ ) from tests.marker import unittest +pytestmark = unittest + @pytest.fixture(scope="module") def circle() -> Shape: @@ -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"