Skip to content

Commit

Permalink
Skip SQLAlchemy tests on marshmallow<2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed May 1, 2015
1 parent 1829496 commit 892078f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_flask_marshmallow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import marshmallow

IS_MARSHMALLOW_2 = int(marshmallow.__version__.split('.')[0]) >= 2
MARSHMALLOW_2 = int(marshmallow.__version__.split('.')[0]) >= 2

_app = Flask(__name__)

Expand Down Expand Up @@ -233,6 +233,8 @@ def test_links_within_nested_object(app, mockbook):
assert author['links']['self'] == url_for('author', id=mockbook.author.id)
assert author['links']['collection'] == url_for('authors')

@pytest.mark.skipif(not MARSHMALLOW_2, reason='marshmallow-sqlalchemy '
'not supported in marshmallow<2.0')
class TestSQLAlchemy:

@pytest.yield_fixture()
Expand Down

0 comments on commit 892078f

Please sign in to comment.