Skip to content

Commit

Permalink
Fix marshmallow test helpers so that they work will all unittest comp…
Browse files Browse the repository at this point in the history
…atible frameworks and not just pytest. 'python setup.py test' works again. (#127)
  • Loading branch information
airstandley committed Sep 17, 2019
1 parent f836681 commit 8b30e5a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/helpers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import pytest

import unittest
from flask_rebar.compat import MARSHMALLOW_V2, MARSHMALLOW_V3


skip_if_marshmallow_not_v2 = pytest.mark.skipif(
skip_if_marshmallow_not_v2 = unittest.skipIf(
not MARSHMALLOW_V2, reason="Only applicable for Marshmallow version 2"
)
skip_if_marshmallow_not_v3 = pytest.mark.skipif(
skip_if_marshmallow_not_v3 = unittest.skipIf(
not MARSHMALLOW_V3, reason="Only applicable for Marshmallow version 3"
)

0 comments on commit 8b30e5a

Please sign in to comment.