import pytest from marshmallow import ( EXCLUDE, INCLUDE, RAISE, Schema, ValidationError, fields, missing, ) from marshmallow.exceptions import StringNotCollectionError from marshmallow.orderedset import OrderedSet from tests.base import ALL_FIELDS @pytest.mark.parametrize( ("alias", "field"), [ (fields.Int, fields.Integer), (fields.Str, fields.String), (fields.Bool, fields.Boolean), (fields.URL, fields.Url), ], ) def test_field_aliases(alias, field): assert alias is field class TestField: def test_repr(self): default = "œ∑´" field = fields.Raw(dump_default=default, attribute=None) assert repr(field) == ( f"" ) int_field = fields.Integer(validate=lambda x: True) assert "