Skip to content

Commit

Permalink
Fix linter errors in test_validation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yeralin committed Oct 3, 2019
1 parent 223f974 commit 72234a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ class TestSchema(Schema):
assert props["foo"]["minimum"] == 1
assert props["foo"]["maximum"] == 3


@pytest.mark.skipif(MARSHMALLOW_3, reason="fixed in marshmallow 3")
def test_doubly_nested_skipped_titles():
class TestSchema(Schema):
foo = fields.List(fields.List(fields.Integer()))

schema = TestSchema()

dumped = validate_and_dump(schema)
Expand All @@ -96,6 +97,7 @@ class TestSchema(Schema):
with pytest.raises(KeyError):
props["foo"]["items"]["items"]["title"]


@pytest.mark.skipif(MARSHMALLOW_2, reason="marshmallow 3 only")
def test_range_marshmallow_3():
class TestSchema(Schema):
Expand Down

0 comments on commit 72234a2

Please sign in to comment.