From 72234a201fac86d07a063c8a0d9cfca300d9c141 Mon Sep 17 00:00:00 2001 From: Daniyar Yeralin Date: Thu, 3 Oct 2019 14:32:22 -0400 Subject: [PATCH] Fix linter errors in test_validation.py --- tests/test_validation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_validation.py b/tests/test_validation.py index d084cfc..951c25b 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -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) @@ -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):