Skip to content

Commit 8b30e5a

Browse files
authored
Fix marshmallow test helpers so that they work will all unittest compatible frameworks and not just pytest. 'python setup.py test' works again. (plangrid#127)
1 parent f836681 commit 8b30e5a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/helpers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import pytest
2-
1+
import unittest
32
from flask_rebar.compat import MARSHMALLOW_V2, MARSHMALLOW_V3
43

54

6-
skip_if_marshmallow_not_v2 = pytest.mark.skipif(
5+
skip_if_marshmallow_not_v2 = unittest.skipIf(
76
not MARSHMALLOW_V2, reason="Only applicable for Marshmallow version 2"
87
)
9-
skip_if_marshmallow_not_v3 = pytest.mark.skipif(
8+
skip_if_marshmallow_not_v3 = unittest.skipIf(
109
not MARSHMALLOW_V3, reason="Only applicable for Marshmallow version 3"
1110
)

0 commit comments

Comments
 (0)