SYMBOL INDEX (1109 symbols across 32 files) FILE: examples/flask_example.py class Base (line 25) | class Base(DeclarativeBase): class Author (line 34) | class Author(db.Model): # type: ignore[name-defined] class Quote (line 40) | class Quote(db.Model): # type: ignore[name-defined] class AuthorSchema (line 51) | class AuthorSchema(Schema): method format_name (line 57) | def format_name(self, author): function must_not_be_blank (line 62) | def must_not_be_blank(data): class QuoteSchema (line 67) | class QuoteSchema(Schema): method process_author (line 76) | def process_author(self, data, **kwargs): function get_authors (line 96) | def get_authors(): function get_author (line 104) | def get_author(pk): function get_quotes (line 115) | def get_quotes(): function get_quote (line 122) | def get_quote(pk): function new_quote (line 132) | def new_quote(): FILE: examples/inflection_example.py function camelcase (line 10) | def camelcase(s): class CamelCaseSchema (line 15) | class CamelCaseSchema(Schema): method on_bind_field (line 20) | def on_bind_field(self, field_name, field_obj): class UserSchema (line 27) | class UserSchema(CamelCaseSchema): FILE: examples/package_json_example.py class Version (line 17) | class Version(fields.Field[version.Version]): method _deserialize (line 20) | def _deserialize(self, value, *args, **kwargs): method _serialize (line 26) | def _serialize(self, value, *args, **kwargs): class PackageSchema (line 30) | class PackageSchema(Schema): class Meta (line 46) | class Meta: FILE: performance/benchmark.py function must_not_be_blank (line 17) | def must_not_be_blank(data): class AuthorSchema (line 22) | class AuthorSchema(Schema): method get_full_name (line 31) | def get_full_name(self, author): class QuoteSchema (line 35) | class QuoteSchema(Schema): method add_full_name (line 46) | def add_full_name(self, data, **kwargs): class Author (line 53) | class Author: method __init__ (line 54) | def __init__(self, id, first, last, book_count, age, address): class Quote (line 63) | class Quote: method __init__ (line 64) | def __init__( function run_timeit (line 85) | def run_timeit(quotes, iterations, repeat, *, profile=False): function main (line 107) | def main(): FILE: src/marshmallow/class_registry.py function register (line 30) | def register(classname: str, cls: SchemaType) -> None: function get_class (line 73) | def get_class(classname: str, *, all: typing.Literal[False] = ...) -> Sc... function get_class (line 77) | def get_class( function get_class (line 82) | def get_class(classname: str, *, all: bool = False) -> list[SchemaType] ... FILE: src/marshmallow/constants.py class _Missing (line 8) | class _Missing: method __bool__ (line 9) | def __bool__(self): method __copy__ (line 12) | def __copy__(self): method __deepcopy__ (line 15) | def __deepcopy__(self, _): method __repr__ (line 18) | def __repr__(self): method __len__ (line 21) | def __len__(self): FILE: src/marshmallow/decorators.py class MarshmallowHook (line 82) | class MarshmallowHook: function validates (line 86) | def validates(*field_names: str) -> typing.Callable[..., typing.Any]: function validates_schema (line 97) | def validates_schema( function pre_dump (line 133) | def pre_dump( function post_dump (line 152) | def post_dump( function pre_load (line 175) | def pre_load( function post_load (line 196) | def post_load( function set_hook (line 221) | def set_hook( FILE: src/marshmallow/error_store.py class ErrorStore (line 12) | class ErrorStore: method __init__ (line 13) | def __init__(self): method store_error (line 17) | def store_error(self, messages, field_name=SCHEMA, index=None): function copy_containers (line 29) | def copy_containers(errors): function merge_errors (line 37) | def merge_errors(errors1, errors2): # noqa: PLR0911 FILE: src/marshmallow/exceptions.py class MarshmallowError (line 11) | class MarshmallowError(Exception): class ValidationError (line 15) | class ValidationError(MarshmallowError): method __init__ (line 27) | def __init__( method normalized_messages (line 44) | def normalized_messages(self): method messages_dict (line 50) | def messages_dict(self) -> dict[str, typing.Any]: class RegistryError (line 59) | class RegistryError(NameError): class StringNotCollectionError (line 65) | class StringNotCollectionError(MarshmallowError, TypeError): class _FieldInstanceResolutionError (line 69) | class _FieldInstanceResolutionError(MarshmallowError, TypeError): FILE: src/marshmallow/experimental/context.py class Context (line 47) | class Context(contextlib.AbstractContextManager, typing.Generic[_Context... method __init__ (line 53) | def __init__(self, context: _ContextT) -> None: method __enter__ (line 57) | def __enter__(self) -> Context[_ContextT]: method __exit__ (line 61) | def __exit__(self, *args, **kwargs) -> None: method get (line 65) | def get(cls, default: _DefaultT | EllipsisType = ...) -> _ContextT | _... FILE: src/marshmallow/fields.py class _BaseFieldKwargs (line 87) | class _BaseFieldKwargs(typing.TypedDict, total=False): function _resolve_field_instance (line 101) | def _resolve_field_instance(cls_or_instance: Field | type[Field]) -> Field: class Field (line 115) | class Field(typing.Generic[_InternalT]): method __init__ (line 178) | def __init__( method __repr__ (line 233) | def __repr__(self) -> str: method __deepcopy__ (line 243) | def __deepcopy__(self, memo): method get_value (line 246) | def get_value( method _validate (line 266) | def _validate(self, value: typing.Any) -> None: method _validate_all (line 273) | def _validate_all(self) -> typing.Callable[[typing.Any], None]: method make_error (line 276) | def make_error(self, key: str, **kwargs) -> ValidationError: method _validate_missing (line 293) | def _validate_missing(self, value: typing.Any) -> None: method serialize (line 302) | def serialize( method deserialize (line 332) | def deserialize( method deserialize (line 342) | def deserialize( method deserialize (line 350) | def deserialize( method _bind_to_schema (line 380) | def _bind_to_schema(self, field_name: str, parent: Schema | Field) -> ... method _serialize (line 393) | def _serialize( method _deserialize (line 415) | def _deserialize( class Raw (line 437) | class Raw(Field[typing.Any]): class Nested (line 441) | class Nested(Field): method __init__ (line 496) | def __init__( method schema (line 528) | def schema(self) -> Schema: method _nested_normalized_option (line 576) | def _nested_normalized_option(self, option_name: str) -> list[str]: method _serialize (line 584) | def _serialize(self, nested_obj, attr, obj, **kwargs): method _test_collection (line 593) | def _test_collection(self, value: typing.Any) -> None: method _load (line 598) | def _load( method _deserialize (line 611) | def _deserialize( class Pluck (line 631) | class Pluck(Nested): method __init__ (line 657) | def __init__( method _field_data_key (line 672) | def _field_data_key(self) -> str: method _serialize (line 676) | def _serialize(self, nested_obj, attr, obj, **kwargs): method _deserialize (line 684) | def _deserialize(self, value, attr, data, partial=None, **kwargs): class List (line 693) | class List(Field[list[_InternalT | None]]): method __init__ (line 711) | def __init__( method _bind_to_schema (line 728) | def _bind_to_schema(self, field_name: str, parent: Schema | Field) -> ... method _serialize (line 736) | def _serialize(self, value, attr, obj, **kwargs) -> list[_InternalT] |... method _deserialize (line 741) | def _deserialize(self, value, attr, data, **kwargs) -> list[_InternalT... class Tuple (line 759) | class Tuple(Field[tuple]): method __init__ (line 782) | def __init__( method _bind_to_schema (line 806) | def _bind_to_schema(self, field_name: str, parent: Schema | Field) -> ... method _serialize (line 816) | def _serialize( method _deserialize (line 827) | def _deserialize( class String (line 855) | class String(Field[str]): method _serialize (line 867) | def _serialize(self, value, attr, obj, **kwargs) -> str | None: method _deserialize (line 872) | def _deserialize(self, value, attr, data, **kwargs) -> str: class UUID (line 881) | class UUID(Field[uuid.UUID]): method _validated (line 887) | def _validated(self, value) -> uuid.UUID: method _serialize (line 898) | def _serialize(self, value, attr, obj, **kwargs) -> str | None: method _deserialize (line 903) | def _deserialize(self, value, attr, data, **kwargs) -> uuid.UUID: class Number (line 910) | class Number(Field[_NumT]): method __init__ (line 929) | def __init__(self, *, as_string: bool = False, **kwargs: Unpack[_BaseF... method _format_num (line 933) | def _format_num(self, value) -> _NumT: method _validated (line 937) | def _validated(self, value: typing.Any) -> _NumT: method _to_string (line 949) | def _to_string(self, value: _NumT) -> str: method _serialize (line 952) | def _serialize(self, value, attr, obj, **kwargs) -> str | _NumT | None: method _deserialize (line 959) | def _deserialize(self, value, attr, data, **kwargs) -> _NumT: class Integer (line 963) | class Integer(Number[int]): method __init__ (line 976) | def __init__( method _validated (line 987) | def _validated(self, value: typing.Any) -> int: class Float (line 993) | class Float(Number[float]): method __init__ (line 1009) | def __init__( method _validated (line 1019) | def _validated(self, value: typing.Any) -> float: class Decimal (line 1027) | class Decimal(Number[decimal.Decimal]): method __init__ (line 1069) | def __init__( method _format_num (line 1086) | def _format_num(self, value): method _validated (line 1096) | def _validated(self, value: typing.Any) -> decimal.Decimal: method _to_string (line 1106) | def _to_string(self, value: decimal.Decimal) -> str: class Boolean (line 1110) | class Boolean(Field[bool]): method __init__ (line 1166) | def __init__( method _deserialize (line 1180) | def _deserialize( class _TemporalField (line 1202) | class _TemporalField(Field[_D], metaclass=abc.ABCMeta): method __init__ (line 1218) | def __init__( method _bind_to_schema (line 1229) | def _bind_to_schema(self, field_name, parent): method _serialize (line 1237) | def _serialize(self, value: _D | None, attr, obj, **kwargs) -> str | f... method _deserialize (line 1246) | def _deserialize(self, value, attr, data, **kwargs) -> _D: method _make_object_from_format (line 1263) | def _make_object_from_format(value: typing.Any, data_format: str) -> _... class DateTime (line 1266) | class DateTime(_TemporalField[dt.datetime]): method _make_object_from_format (line 1307) | def _make_object_from_format(value, data_format) -> dt.datetime: class NaiveDateTime (line 1311) | class NaiveDateTime(DateTime): method __init__ (line 1326) | def __init__( method _deserialize (line 1336) | def _deserialize(self, value, attr, data, **kwargs) -> dt.datetime: class AwareDateTime (line 1349) | class AwareDateTime(DateTime): method __init__ (line 1363) | def __init__( method _deserialize (line 1373) | def _deserialize(self, value, attr, data, **kwargs) -> dt.datetime: class Time (line 1386) | class Time(_TemporalField[dt.time]): method _make_object_from_format (line 1413) | def _make_object_from_format(value, data_format): class Date (line 1417) | class Date(_TemporalField[dt.date]): method _make_object_from_format (line 1448) | def _make_object_from_format(value, data_format): class TimeDelta (line 1452) | class TimeDelta(Field[dt.timedelta]): method __init__ (line 1504) | def __init__( method _serialize (line 1519) | def _serialize(self, value, attr, obj, **kwargs) -> float | None: method _deserialize (line 1528) | def _deserialize(self, value, attr, data, **kwargs) -> dt.timedelta: class Mapping (line 1547) | class Mapping(Field[_MappingT]): method __init__ (line 1569) | def __init__( method _bind_to_schema (line 1600) | def _bind_to_schema(self, field_name, parent): method _serialize (line 1612) | def _serialize(self, value, attr, obj, **kwargs): method _deserialize (line 1638) | def _deserialize(self, value, attr, data, **kwargs): class Dict (line 1681) | class Dict(Mapping[dict]): class Url (line 1696) | class Url(String): method __init__ (line 1711) | def __init__( class Email (line 1736) | class Email(String): method __init__ (line 1746) | def __init__(self, **kwargs: Unpack[_BaseFieldKwargs]) -> None: class IP (line 1753) | class IP(Field[ipaddress.IPv4Address | ipaddress.IPv6Address]): method __init__ (line 1766) | def __init__(self, *, exploded: bool = False, **kwargs: Unpack[_BaseFi... method _serialize (line 1770) | def _serialize(self, value, attr, obj, **kwargs) -> str | None: method _deserialize (line 1777) | def _deserialize( class IPv4 (line 1788) | class IPv4(IP): class IPv6 (line 1799) | class IPv6(IP): class IPInterface (line 1810) | class IPInterface(Field[ipaddress.IPv4Interface | ipaddress.IPv6Interfac... method __init__ (line 1828) | def __init__(self, *, exploded: bool = False, **kwargs: Unpack[_BaseFi... method _serialize (line 1832) | def _serialize(self, value, attr, obj, **kwargs) -> str | None: method _deserialize (line 1839) | def _deserialize( class IPv4Interface (line 1850) | class IPv4Interface(IPInterface): class IPv6Interface (line 1858) | class IPv6Interface(IPInterface): class Enum (line 1869) | class Enum(Field[_EnumT]): method __init__ (line 1887) | def __init__( method _serialize (line 1920) | def _serialize( method _deserialize (line 1931) | def _deserialize(self, value, attr, data, **kwargs) -> _EnumT: class Method (line 1946) | class Method(Field): method __init__ (line 1962) | def __init__( method _bind_to_schema (line 1977) | def _bind_to_schema(self, field_name, parent): method _serialize (line 1990) | def _serialize(self, value, attr, obj, **kwargs): method _deserialize (line 1995) | def _deserialize(self, value, attr, data, **kwargs): class Function (line 2001) | class Function(Field): method __init__ (line 2024) | def __init__( method _serialize (line 2045) | def _serialize(self, value, attr, obj, **kwargs): method _deserialize (line 2048) | def _deserialize(self, value, attr, data, **kwargs): class Constant (line 2057) | class Constant(Field[_ContantT]): method __init__ (line 2067) | def __init__(self, constant: _ContantT, **kwargs: Unpack[_BaseFieldKwa... method _serialize (line 2073) | def _serialize(self, value, *args, **kwargs) -> _ContantT: method _deserialize (line 2076) | def _deserialize(self, value, *args, **kwargs) -> _ContantT: FILE: src/marshmallow/orderedset.py class OrderedSet (line 26) | class OrderedSet(MutableSet): # noqa: PLW1641 method __init__ (line 27) | def __init__(self, iterable=None): method __len__ (line 34) | def __len__(self): method __contains__ (line 37) | def __contains__(self, key): method add (line 40) | def add(self, key): method discard (line 46) | def discard(self, key): method __iter__ (line 52) | def __iter__(self): method __reversed__ (line 59) | def __reversed__(self): method pop (line 66) | def pop(self, last=True): method __repr__ (line 73) | def __repr__(self): method __eq__ (line 78) | def __eq__(self, other): FILE: src/marshmallow/schema.py function _get_fields (line 45) | def _get_fields(attrs) -> list[tuple[str, Field]]: function _get_fields_by_mro (line 65) | def _get_fields_by_mro(klass: SchemaMeta): class SchemaMeta (line 88) | class SchemaMeta(ABCMeta): method __new__ (line 100) | def __new__( method get_declared_fields (line 132) | def get_declared_fields( method __init__ (line 151) | def __init__(cls, name, bases, attrs): method resolve_hooks (line 157) | def resolve_hooks(cls) -> dict[str, list[tuple[str, bool, dict]]]: class SchemaOpts (line 201) | class SchemaOpts: method __init__ (line 204) | def __init__(self, meta: type): class Schema (line 224) | class Schema(metaclass=SchemaMeta): class Meta (line 313) | class Meta: method __init__ (line 403) | def __init__( method __repr__ (line 445) | def __repr__(self) -> str: method from_dict (line 449) | def from_dict( method handle_error (line 481) | def handle_error( method get_attribute (line 495) | def get_attribute(self, obj: typing.Any, attr: str, default: typing.Any): method _call_and_store (line 506) | def _call_and_store(getter_func, data, *, field_name, error_store, ind... method _serialize (line 525) | def _serialize(self, obj: typing.Any, *, many: bool = False): method dump (line 543) | def dump(self, obj: typing.Any, *, many: bool | None = None): method dumps (line 576) | def dumps(self, obj: typing.Any, *args, many: bool | None = None, **kw... method _deserialize (line 592) | def _deserialize( method load (line 703) | def load( method loads (line 734) | def loads( method _run_validator (line 769) | def _run_validator( method validate (line 811) | def validate( method _do_load (line 838) | def _do_load( method _normalize_nested_options (line 942) | def _normalize_nested_options(self) -> None: method __apply_nested_option (line 959) | def __apply_nested_option(self, option_name, field_names, set_operatio... method _init_fields (line 978) | def _init_fields(self) -> None: method on_bind_field (line 1051) | def on_bind_field(self, field_name: str, field_obj: Field) -> None: method _bind_field (line 1058) | def _bind_field(self, field_name: str, field_obj: Field) -> None: method _invoke_dump_processors (line 1072) | def _invoke_dump_processors( method _invoke_load_processors (line 1089) | def _invoke_load_processors( method _invoke_field_validators (line 1120) | def _invoke_field_validators(self, *, error_store: ErrorStore, data, m... method _invoke_schema_validators (line 1170) | def _invoke_schema_validators( method _invoke_processors (line 1217) | def _invoke_processors( FILE: src/marshmallow/types.py class SchemaValidator (line 22) | class SchemaValidator(typing.Protocol): method __call__ (line 23) | def __call__( class RenderModule (line 34) | class RenderModule(typing.Protocol): method dumps (line 35) | def dumps( method loads (line 39) | def loads( FILE: src/marshmallow/utils.py function is_generator (line 13) | def is_generator(obj) -> typing.TypeGuard[typing.Generator]: function is_iterable_but_not_string (line 18) | def is_iterable_but_not_string(obj) -> typing.TypeGuard[typing.Iterable]: function is_sequence_but_not_string (line 23) | def is_sequence_but_not_string(obj) -> typing.TypeGuard[Sequence]: function is_collection (line 28) | def is_collection(obj) -> typing.TypeGuard[typing.Iterable]: function is_aware (line 34) | def is_aware(datetime: dt.datetime) -> bool: function from_timestamp (line 40) | def from_timestamp(value: typing.Any) -> dt.datetime: function from_timestamp_ms (line 57) | def from_timestamp_ms(value: typing.Any) -> dt.datetime: function timestamp (line 62) | def timestamp( function timestamp_ms (line 71) | def timestamp_ms(value: dt.datetime) -> float: function ensure_text_type (line 75) | def ensure_text_type(val: str | bytes) -> str: function pluck (line 81) | def pluck(dictlist: list[dict[str, typing.Any]], key: str): function get_value (line 95) | def get_value(obj, key: int | str, default=missing): function _get_value_for_keys (line 111) | def _get_value_for_keys(obj, keys, default): function _get_value_for_key (line 119) | def _get_value_for_key(obj, key, default): function set_value (line 129) | def set_value(dct: dict[str, typing.Any], key: str, value: typing.Any): function callable_or_raise (line 152) | def callable_or_raise(obj): function timedelta_to_microseconds (line 159) | def timedelta_to_microseconds(value: dt.timedelta) -> int: FILE: src/marshmallow/validate.py class Validator (line 19) | class Validator(ABC): method __repr__ (line 29) | def __repr__(self) -> str: method _repr_args (line 35) | def _repr_args(self) -> str: method __call__ (line 42) | def __call__(self, value: typing.Any) -> typing.Any: ... class And (line 45) | class And(Validator): method __init__ (line 65) | def __init__(self, *validators: types.Validator): method _repr_args (line 68) | def _repr_args(self) -> str: method __call__ (line 71) | def __call__(self, value: typing.Any) -> typing.Any: class URL (line 88) | class URL(Validator): class RegexMemoizer (line 100) | class RegexMemoizer: method __init__ (line 101) | def __init__(self): method _regex_generator (line 104) | def _regex_generator( method __call__ (line 158) | def __call__( method __init__ (line 174) | def __init__( method _repr_args (line 193) | def _repr_args(self) -> str: method _format_error (line 196) | def _format_error(self, value) -> str: method __call__ (line 199) | def __call__(self, value: str) -> str: class Email (line 228) | class Email(Validator): method __init__ (line 257) | def __init__(self, *, error: str | None = None): method _format_error (line 260) | def _format_error(self, value: str) -> str: method __call__ (line 263) | def __call__(self, value: str) -> str: class Range (line 288) | class Range(Validator): method __init__ (line 316) | def __init__( method _repr_args (line 343) | def _repr_args(self) -> str: method _format_error (line 346) | def _format_error(self, value: _T, message: str) -> str: method __call__ (line 349) | def __call__(self, value: _T) -> _T: class Length (line 368) | class Length(Validator): method __init__ (line 388) | def __init__( method _repr_args (line 407) | def _repr_args(self) -> str: method _format_error (line 410) | def _format_error(self, value: _SizedT, message: str) -> str: method __call__ (line 415) | def __call__(self, value: _SizedT) -> _SizedT: class Equal (line 434) | class Equal(Validator): method __init__ (line 445) | def __init__(self, comparable, *, error: str | None = None): method _repr_args (line 449) | def _repr_args(self) -> str: method _format_error (line 452) | def _format_error(self, value: _T) -> str: method __call__ (line 455) | def __call__(self, value: _T) -> _T: class Regexp (line 461) | class Regexp(Validator): method __init__ (line 478) | def __init__( method _repr_args (line 490) | def _repr_args(self) -> str: method _format_error (line 493) | def _format_error(self, value: str | bytes) -> str: method __call__ (line 497) | def __call__(self, value: str) -> str: ... method __call__ (line 500) | def __call__(self, value: bytes) -> bytes: ... method __call__ (line 502) | def __call__(self, value): class Predicate (line 509) | class Predicate(Validator): method __init__ (line 523) | def __init__(self, method: str, *, error: str | None = None, **kwargs): method _repr_args (line 528) | def _repr_args(self) -> str: method _format_error (line 531) | def _format_error(self, value: typing.Any) -> str: method __call__ (line 534) | def __call__(self, value: _T) -> _T: class NoneOf (line 543) | class NoneOf(Validator): method __init__ (line 553) | def __init__(self, iterable: typing.Iterable, *, error: str | None = N... method _repr_args (line 558) | def _repr_args(self) -> str: method _format_error (line 561) | def _format_error(self, value) -> str: method __call__ (line 564) | def __call__(self, value: typing.Any) -> typing.Any: class OneOf (line 574) | class OneOf(Validator): method __init__ (line 585) | def __init__( method _repr_args (line 598) | def _repr_args(self) -> str: method _format_error (line 601) | def _format_error(self, value) -> str: method __call__ (line 606) | def __call__(self, value: typing.Any) -> typing.Any: method options (line 615) | def options( class ContainsOnly (line 634) | class ContainsOnly(OneOf): method _format_error (line 652) | def _format_error(self, value) -> str: method __call__ (line 656) | def __call__(self, value: typing.Sequence[_T]) -> typing.Sequence[_T]: class ContainsNoneOf (line 664) | class ContainsNoneOf(NoneOf): method _format_error (line 677) | def _format_error(self, value) -> str: method __call__ (line 681) | def __call__(self, value: typing.Sequence[_T]) -> typing.Sequence[_T]: FILE: tests/base.py class GenderEnum (line 18) | class GenderEnum(IntEnum): class HairColorEnum (line 24) | class HairColorEnum(Enum): class DateEnum (line 31) | class DateEnum(Enum): function assert_date_equal (line 66) | def assert_date_equal(d1: dt.date, d2: dt.date) -> None: function assert_time_equal (line 72) | def assert_time_equal(t1: dt.time, t2: dt.time) -> None: function predicate (line 82) | def predicate( class User (line 95) | class User: method __init__ (line 98) | def __init__( method since_created (line 145) | def since_created(self): method __repr__ (line 148) | def __repr__(self): class Blog (line 152) | class Blog: method __init__ (line 153) | def __init__(self, title, user, collaborators=None, categories=None, i... method __contains__ (line 160) | def __contains__(self, item): class Uppercased (line 167) | class Uppercased(fields.String): method _serialize (line 170) | def _serialize(self, value, attr, obj, **kwargs): function get_lowername (line 176) | def get_lowername(obj): class UserSchema (line 184) | class UserSchema(Schema): class Meta (line 214) | class Meta: method get_is_old (line 217) | def get_is_old(self, obj): method make_user (line 230) | def make_user(self, data, **kwargs): class UserExcludeSchema (line 234) | class UserExcludeSchema(UserSchema): class Meta (line 235) | class Meta: class UserIntSchema (line 239) | class UserIntSchema(UserSchema): class UserFloatStringSchema (line 243) | class UserFloatStringSchema(UserSchema): class ExtendedUserSchema (line 247) | class ExtendedUserSchema(UserSchema): class UserRelativeUrlSchema (line 251) | class UserRelativeUrlSchema(UserSchema): class BlogSchema (line 255) | class BlogSchema(Schema): class BlogOnlySchema (line 263) | class BlogOnlySchema(Schema): class BlogSchemaExclude (line 269) | class BlogSchemaExclude(BlogSchema): class BlogSchemaOnlyExclude (line 273) | class BlogSchemaOnlyExclude(BlogSchema): class mockjson (line 277) | class mockjson: # noqa: N801 method dumps (line 279) | def dumps(val): method loads (line 283) | def loads(val): FILE: tests/conftest.py function user (line 9) | def user(): function blog (line 14) | def blog(user): function serialized_user (line 26) | def serialized_user(user): FILE: tests/foo_serializer.py class FooSerializer (line 4) | class FooSerializer(Schema): FILE: tests/mypy_test_cases/test_schema.py class MySchema (line 8) | class MySchema(Schema): class Meta (line 12) | class Meta(Schema.Meta): FILE: tests/test_context.py class UserContextSchema (line 20) | class UserContextSchema(Schema): method get_is_owner (line 26) | def get_is_owner(self, user): class TestContext (line 30) | class TestContext: method test_context_load_dump (line 31) | def test_context_load_dump(self): method test_context_method (line 55) | def test_context_method(self): method test_context_function (line 66) | def test_context_function(self): method test_function_field_handles_bound_serializer (line 79) | def test_function_field_handles_bound_serializer(self): method test_nested_fields_inherit_context (line 95) | def test_nested_fields_inherit_context(self): method test_nested_list_fields_inherit_context (line 109) | def test_nested_list_fields_inherit_context(self): method test_nested_dict_fields_inherit_context (line 130) | def test_nested_dict_fields_inherit_context(self): method test_nested_field_with_unpicklable_object_in_context (line 151) | def test_nested_field_with_unpicklable_object_in_context(self): method test_function_field_passed_serialize_with_context (line 167) | def test_function_field_passed_serialize_with_context(self, user): method test_function_field_deserialization_with_context (line 178) | def test_function_field_deserialization_with_context(self): method test_decorated_processors_with_context (line 190) | def test_decorated_processors_with_context(self): method test_validates_schema_with_context (line 235) | def test_validates_schema_with_context(self): FILE: tests/test_decorators.py function test_decorated_processors (line 22) | def test_decorated_processors(partial_val): function test_decorated_processor_returning_none (line 99) | def test_decorated_processor_returning_none(unknown): class TestPassOriginal (line 132) | class TestPassOriginal: method test_pass_original_single (line 133) | def test_pass_original_single(self): method test_pass_original_many (line 160) | def test_pass_original_many(self): function test_decorated_processor_inheritance (line 214) | def test_decorated_processor_inheritance(): class ValidatesSchema (line 250) | class ValidatesSchema(Schema): method validate_foo (line 254) | def validate_foo(self, value, **kwargs): class TestValidatesDecorator (line 259) | class TestValidatesDecorator: method test_validates (line 260) | def test_validates(self): method test_validates_with_attribute (line 274) | def test_validates_with_attribute(self): method test_validates_decorator (line 289) | def test_validates_decorator(self): method test_field_not_present (line 330) | def test_field_not_present(self): method test_precedence (line 341) | def test_precedence(self): method test_validates_with_data_key (line 369) | def test_validates_with_data_key(self): method test_validates_accepts_multiple_fields (line 388) | def test_validates_accepts_multiple_fields(self): class TestValidatesSchemaDecorator (line 406) | class TestValidatesSchemaDecorator: method test_validator_nested_many_invalid_data (line 407) | def test_validator_nested_many_invalid_data(self): method test_validator_nested_many_schema_error (line 421) | def test_validator_nested_many_schema_error(self): method test_validator_nested_many_field_error (line 439) | def test_validator_nested_many_field_error(self): method test_validator_nested_many_pass_original_and_pass_collection (line 465) | def test_validator_nested_many_pass_original_and_pass_collection( method test_decorated_validators (line 488) | def test_decorated_validators(self): method test_multiple_validators (line 525) | def test_multiple_validators(self): method test_multiple_validators_merge_dict_errors (line 557) | def test_multiple_validators_merge_dict_errors(self): method test_passing_original_data (line 587) | def test_passing_original_data(self): method test_allow_reporting_field_errors_in_schema_validator (line 622) | def test_allow_reporting_field_errors_in_schema_validator(self): method test_allow_arbitrary_field_names_in_error (line 647) | def test_allow_arbitrary_field_names_in_error(self): method test_skip_on_field_errors (line 656) | def test_skip_on_field_errors(self): method test_data_key_is_used_in_errors_dict (line 697) | def test_data_key_is_used_in_errors_dict(self): function test_decorator_error_handling (line 725) | def test_decorator_error_handling(): function test_decorator_error_handling_with_load (line 812) | def test_decorator_error_handling_with_load(decorator): function test_decorator_error_handling_with_load_dict_error (line 826) | def test_decorator_error_handling_with_load_dict_error(decorator): function test_decorator_error_handling_with_dump (line 840) | def test_decorator_error_handling_with_dump(decorator): class Nested (line 853) | class Nested: method __init__ (line 854) | def __init__(self, foo): class Example (line 858) | class Example: method __init__ (line 859) | def __init__(self, nested): function test_decorator_post_dump_with_nested_original_and_pass_collection (line 870) | def test_decorator_post_dump_with_nested_original_and_pass_collection( function test_decorator_post_load_with_nested_original_and_pass_collection (line 904) | def test_decorator_post_load_with_nested_original_and_pass_collection( function test_load_processors_receive_unknown (line 936) | def test_load_processors_receive_unknown(usage_location, unknown_val): function test_post_load_method_that_appends_to_data (line 968) | def test_post_load_method_that_appends_to_data(): FILE: tests/test_deserialization.py class MockDateTimeOverflowError (line 33) | class MockDateTimeOverflowError(dt.datetime): method fromtimestamp (line 36) | def fromtimestamp(self, *args, **kwargs): # type: ignore[override] class MockDateTimeOSError (line 40) | class MockDateTimeOSError(dt.datetime): method fromtimestamp (line 43) | def fromtimestamp(self, *args, **kwargs): # type: ignore[override] class TestDeserializingNone (line 47) | class TestDeserializingNone: method test_fields_allow_none_deserialize_to_none (line 49) | def test_fields_allow_none_deserialize_to_none(self, FieldClass): method test_fields_dont_allow_none_by_default (line 55) | def test_fields_dont_allow_none_by_default(self, FieldClass): method test_allow_none_is_true_if_missing_is_true (line 60) | def test_allow_none_is_true_if_missing_is_true(self): method test_list_field_deserialize_none_to_none (line 65) | def test_list_field_deserialize_none_to_none(self): method test_tuple_field_deserialize_none_to_none (line 69) | def test_tuple_field_deserialize_none_to_none(self): method test_list_of_nested_allow_none_deserialize_none_to_none (line 73) | def test_list_of_nested_allow_none_deserialize_none_to_none(self): method test_list_of_nested_non_allow_none_deserialize_none_to_validation_error (line 77) | def test_list_of_nested_non_allow_none_deserialize_none_to_validation_... class TestFieldDeserialization (line 83) | class TestFieldDeserialization: method test_float_field_deserialization (line 84) | def test_float_field_deserialization(self): method test_invalid_float_field_deserialization (line 90) | def test_invalid_float_field_deserialization(self, in_val): method test_float_field_overflow (line 96) | def test_float_field_overflow(self): method test_integer_field_deserialization (line 102) | def test_integer_field_deserialization(self): method test_strict_integer_field_deserialization (line 115) | def test_strict_integer_field_deserialization(self): method test_decimal_field_deserialization (line 128) | def test_decimal_field_deserialization(self): method test_decimal_field_with_places (line 152) | def test_decimal_field_with_places(self): method test_decimal_field_with_places_and_rounding (line 173) | def test_decimal_field_with_places_and_rounding(self): method test_decimal_field_deserialization_string (line 192) | def test_decimal_field_deserialization_string(self): method test_decimal_field_special_values (line 211) | def test_decimal_field_special_values(self): method test_decimal_field_special_values_not_permitted (line 257) | def test_decimal_field_special_values_not_permitted(self): method test_float_field_allow_nan (line 291) | def test_float_field_allow_nan(self, value, allow_nan): method test_string_field_deserialization (line 312) | def test_string_field_deserialization(self): method test_boolean_field_deserialization (line 325) | def test_boolean_field_deserialization(self): method test_boolean_field_deserialization_with_custom_truthy_values (line 364) | def test_boolean_field_deserialization_with_custom_truthy_values(self): method test_boolean_field_deserialization_with_custom_truthy_values_invalid (line 376) | def test_boolean_field_deserialization_with_custom_truthy_values_invalid( method test_boolean_field_deserialization_with_empty_truthy (line 399) | def test_boolean_field_deserialization_with_empty_truthy(self): method test_boolean_field_deserialization_with_custom_falsy_values (line 405) | def test_boolean_field_deserialization_with_custom_falsy_values(self): method test_field_toggle_show_invalid_value_in_error_message (line 410) | def test_field_toggle_show_invalid_value_in_error_message(self): method test_invalid_datetime_deserialization (line 449) | def test_invalid_datetime_deserialization(self, in_value): method test_custom_date_format_datetime_field_deserialization (line 454) | def test_custom_date_format_datetime_field_deserialization(self): method test_rfc_datetime_field_deserialization (line 498) | def test_rfc_datetime_field_deserialization(self, fmt, value, expected... method test_iso_datetime_field_deserialization (line 542) | def test_iso_datetime_field_deserialization(self, fmt, value, expected... method test_timestamp_field_deserialization (line 574) | def test_timestamp_field_deserialization(self, fmt, value, expected): method test_invalid_timestamp_field_deserialization (line 596) | def test_invalid_timestamp_field_deserialization(self, fmt, in_value): method test_oversized_timestamp_field_deserialization (line 606) | def test_oversized_timestamp_field_deserialization(self, fmt, mock_fro... method test_naive_datetime_with_timezone (line 648) | def test_naive_datetime_with_timezone(self, fmt, timezone, value, expe... method test_aware_datetime_default_timezone (line 657) | def test_aware_datetime_default_timezone(self, fmt, timezone, value): method test_time_field_deserialization (line 663) | def test_time_field_deserialization(self): method test_invalid_time_field_deserialization (line 677) | def test_invalid_time_field_deserialization(self, in_data): method test_custom_time_format_time_field_deserialization (line 683) | def test_custom_time_format_time_field_deserialization(self): method test_iso_time_field_deserialization (line 708) | def test_iso_time_field_deserialization(self, fmt, value, expected): method test_invalid_timedelta_precision (line 715) | def test_invalid_timedelta_precision(self): method test_timedelta_field_deserialization (line 719) | def test_timedelta_field_deserialization(self): method test_invalid_timedelta_field_deserialization (line 858) | def test_invalid_timedelta_field_deserialization(self, in_value): method test_date_field_deserialization (line 865) | def test_date_field_deserialization(self, format): # noqa: A002 method test_invalid_date_field_deserialization (line 876) | def test_invalid_date_field_deserialization(self, in_value): method test_dict_field_deserialization (line 883) | def test_dict_field_deserialization(self): method test_structured_dict_value_deserialization (line 895) | def test_structured_dict_value_deserialization(self): method test_structured_dict_key_deserialization (line 906) | def test_structured_dict_key_deserialization(self): method test_structured_dict_key_value_deserialization (line 914) | def test_structured_dict_key_value_deserialization(self): method test_url_field_deserialization (line 952) | def test_url_field_deserialization(self): method test_url_field_non_list_validators (line 964) | def test_url_field_non_list_validators(self): method test_relative_url_field_deserialization (line 969) | def test_relative_url_field_deserialization(self): method test_url_field_schemes_argument (line 973) | def test_url_field_schemes_argument(self): method test_email_field_deserialization (line 981) | def test_email_field_deserialization(self): method test_email_field_non_list_validators (line 994) | def test_email_field_non_list_validators(self): method test_function_field_deserialization_is_noop_by_default (line 999) | def test_function_field_deserialization_is_noop_by_default(self): method test_function_field_deserialization_with_callable (line 1005) | def test_function_field_deserialization_with_callable(self): method test_function_field_deserialization_missing_with_length_validator (line 1009) | def test_function_field_deserialization_missing_with_length_validator(... method test_function_field_passed_deserialize_only_is_load_only (line 1016) | def test_function_field_passed_deserialize_only_is_load_only(self): method test_function_field_passed_deserialize_and_serialize_is_not_load_only (line 1020) | def test_function_field_passed_deserialize_and_serialize_is_not_load_o... method test_uuid_field_deserialization (line 1026) | def test_uuid_field_deserialization(self): method test_invalid_uuid_deserialization (line 1044) | def test_invalid_uuid_deserialization(self, in_value): method test_ip_field_deserialization (line 1051) | def test_ip_field_deserialization(self): method test_invalid_ip_deserialization (line 1067) | def test_invalid_ip_deserialization(self, in_value): method test_ipv4_field_deserialization (line 1074) | def test_ipv4_field_deserialization(self): method test_invalid_ipv4_deserialization (line 1092) | def test_invalid_ipv4_deserialization(self, in_value): method test_ipv6_field_deserialization (line 1099) | def test_ipv6_field_deserialization(self): method test_ipinterface_field_deserialization (line 1106) | def test_ipinterface_field_deserialization(self): method test_invalid_ipinterface_deserialization (line 1130) | def test_invalid_ipinterface_deserialization(self, in_value): method test_ipv4interface_field_deserialization (line 1137) | def test_ipv4interface_field_deserialization(self): method test_invalid_ipv4interface_deserialization (line 1156) | def test_invalid_ipv4interface_deserialization(self, in_value): method test_ipv6interface_field_deserialization (line 1163) | def test_ipv6interface_field_deserialization(self): method test_invalid_ipv6interface_deserialization (line 1182) | def test_invalid_ipv6interface_deserialization(self, in_value): method test_enum_field_by_symbol_deserialization (line 1189) | def test_enum_field_by_symbol_deserialization(self): method test_enum_field_by_symbol_invalid_value (line 1193) | def test_enum_field_by_symbol_invalid_value(self): method test_enum_field_by_symbol_not_string (line 1200) | def test_enum_field_by_symbol_not_string(self): method test_enum_field_by_value_true_deserialization (line 1205) | def test_enum_field_by_value_true_deserialization(self): method test_enum_field_by_value_field_deserialization (line 1211) | def test_enum_field_by_value_field_deserialization(self): method test_enum_field_by_value_true_invalid_value (line 1219) | def test_enum_field_by_value_true_invalid_value(self): method test_enum_field_by_value_field_invalid_value (line 1230) | def test_enum_field_by_value_field_invalid_value(self): method test_enum_field_by_value_true_wrong_type (line 1246) | def test_enum_field_by_value_true_wrong_type(self): method test_enum_field_by_value_field_wrong_type (line 1257) | def test_enum_field_by_value_field_wrong_type(self): method test_deserialization_function_must_be_callable (line 1268) | def test_deserialization_function_must_be_callable(self): method test_method_field_deserialization_is_noop_by_default (line 1272) | def test_method_field_deserialization_is_noop_by_default(self): method test_deserialization_method (line 1282) | def test_deserialization_method(self): method test_deserialization_method_must_be_a_method (line 1295) | def test_deserialization_method_must_be_a_method(self): method test_method_field_deserialize_only (line 1302) | def test_method_field_deserialize_only(self): method test_datetime_list_field_deserialization (line 1311) | def test_datetime_list_field_deserialization(self): method test_list_field_deserialize_invalid_item (line 1320) | def test_list_field_deserialize_invalid_item(self): method test_list_field_deserialize_multiple_invalid_items (line 1331) | def test_list_field_deserialize_multiple_invalid_items(self): method test_list_field_deserialize_value_that_is_not_a_list (line 1344) | def test_list_field_deserialize_value_that_is_not_a_list(self, value): method test_datetime_int_tuple_field_deserialization (line 1350) | def test_datetime_int_tuple_field_deserialization(self): method test_tuple_field_deserialize_invalid_item (line 1364) | def test_tuple_field_deserialize_invalid_item(self): method test_tuple_field_deserialize_multiple_invalid_items (line 1375) | def test_tuple_field_deserialize_multiple_invalid_items(self): method test_tuple_field_deserialize_value_that_is_not_a_collection (line 1392) | def test_tuple_field_deserialize_value_that_is_not_a_collection(self, ... method test_tuple_field_deserialize_invalid_length (line 1398) | def test_tuple_field_deserialize_invalid_length(self): method test_constant_field_deserialization (line 1404) | def test_constant_field_deserialization(self): method test_constant_is_always_included_in_deserialized_data (line 1408) | def test_constant_is_always_included_in_deserialized_data(self): method test_constant_none_allows_none_value (line 1416) | def test_constant_none_allows_none_value(self): method test_field_deserialization_with_user_validator_function (line 1425) | def test_field_deserialization_with_user_validator_function(self): method test_field_deserialization_with_user_validator_that_raises_error_with_list (line 1433) | def test_field_deserialization_with_user_validator_that_raises_error_w... method test_field_deserialization_with_validator_with_nonascii_input (line 1445) | def test_field_deserialization_with_validator_with_nonascii_input(self): method test_field_deserialization_with_user_validators (line 1454) | def test_field_deserialization_with_user_validators(self): method test_fields_accept_internal_types (line 1518) | def test_fields_accept_internal_types(self, field, value): class SimpleUserSchema (line 1523) | class SimpleUserSchema(Schema): class Validator (line 1528) | class Validator(Schema): class Validators (line 1534) | class Validators(Schema): class TestSchemaDeserialization (line 1540) | class TestSchemaDeserialization: method test_deserialize_to_dict (line 1541) | def test_deserialize_to_dict(self): method test_deserialize_with_missing_values (line 1547) | def test_deserialize_with_missing_values(self): method test_deserialize_many (line 1553) | def test_deserialize_many(self): method test_exclude (line 1560) | def test_exclude(self): method test_nested_single_deserialization_to_dict (line 1566) | def test_nested_single_deserialization_to_dict(self): method test_nested_list_deserialization_to_dict (line 1581) | def test_nested_list_deserialization_to_dict(self): method test_nested_single_none_not_allowed (line 1599) | def test_nested_single_none_not_allowed(self): method test_nested_many_non_not_allowed (line 1611) | def test_nested_many_non_not_allowed(self): method test_nested_single_required_missing (line 1623) | def test_nested_single_required_missing(self): method test_nested_many_required_missing (line 1635) | def test_nested_many_required_missing(self): method test_nested_only_basestring (line 1647) | def test_nested_only_basestring(self): method test_nested_only_basestring_with_list_data (line 1659) | def test_nested_only_basestring_with_list_data(self): method test_nested_none_deserialization (line 1672) | def test_nested_none_deserialization(self): method test_deserialize_with_attribute_param (line 1682) | def test_deserialize_with_attribute_param(self): method test_deserialize_with_attribute_param_symmetry (line 1693) | def test_deserialize_with_attribute_param_symmetry(self): method test_deserialize_with_attribute_param_error_returns_field_name_not_attribute_name (line 1704) | def test_deserialize_with_attribute_param_error_returns_field_name_not... method test_deserialize_with_attribute_param_error_returns_data_key_not_attribute_name (line 1717) | def test_deserialize_with_attribute_param_error_returns_data_key_not_a... method test_deserialize_with_data_key_param (line 1732) | def test_deserialize_with_data_key_param(self): method test_deserialize_with_data_key_as_empty_string (line 1744) | def test_deserialize_with_data_key_as_empty_string(self): method test_deserialize_with_dump_only_param (line 1751) | def test_deserialize_with_dump_only_param(self): method test_deserialize_with_missing_param_value (line 1770) | def test_deserialize_with_missing_param_value(self): method test_deserialize_with_missing_param_callable (line 1782) | def test_deserialize_with_missing_param_callable(self): method test_deserialize_with_missing_param_none (line 1794) | def test_deserialize_with_missing_param_none(self): method test_deserialization_raises_with_errors (line 1804) | def test_deserialization_raises_with_errors(self): method test_deserialization_raises_with_errors_with_multiple_validators (line 1814) | def test_deserialization_raises_with_errors_with_multiple_validators(s... method test_deserialization_many_raises_errors (line 1824) | def test_deserialization_many_raises_errors(self): method test_validation_errors_are_stored (line 1833) | def test_validation_errors_are_stored(self): method test_multiple_errors_can_be_stored_for_a_field (line 1845) | def test_multiple_errors_can_be_stored_for_a_field(self): method test_multiple_errors_can_be_stored_for_an_email_field (line 1862) | def test_multiple_errors_can_be_stored_for_an_email_field(self): method test_multiple_errors_can_be_stored_for_a_url_field (line 1875) | def test_multiple_errors_can_be_stored_for_a_url_field(self): method test_required_value_only_passed_to_validators_if_provided (line 1888) | def test_required_value_only_passed_to_validators_if_provided(self): method test_partial_deserialization (line 1900) | def test_partial_deserialization(self, partial_schema): method test_partial_fields_deserialization (line 1914) | def test_partial_fields_deserialization(self): method test_partial_fields_validation (line 1939) | def test_partial_fields_validation(self): method test_unknown_fields_deserialization (line 1955) | def test_unknown_fields_deserialization(self): method test_unknown_fields_deserialization_precedence (line 2000) | def test_unknown_fields_deserialization_precedence(self): method test_unknown_fields_deserialization_with_data_key (line 2022) | def test_unknown_fields_deserialization_with_data_key(self): method test_unknown_fields_deserialization_with_index_errors_false (line 2041) | def test_unknown_fields_deserialization_with_index_errors_false(self): method test_dump_only_fields_considered_unknown (line 2058) | def test_dump_only_fields_considered_unknown(self): method test_unknown_fields_do_not_unpack_dotted_names (line 2073) | def test_unknown_fields_do_not_unpack_dotted_names(self): class TestValidation (line 2107) | class TestValidation: method test_integer_with_validator (line 2108) | def test_integer_with_validator(self): method test_integer_with_validators (line 2127) | def test_integer_with_validators(self, field): method test_float_with_validators (line 2145) | def test_float_with_validators(self, field): method test_string_validator (line 2150) | def test_string_validator(self): method test_function_validator (line 2156) | def test_function_validator(self): method test_function_validators (line 2184) | def test_function_validators(self, field): method test_method_validator (line 2189) | def test_method_validator(self): method test_nested_data_is_stored_when_validation_fails (line 2203) | def test_nested_data_is_stored_when_validation_fails(self): method test_nested_partial_load (line 2227) | def test_nested_partial_load(self): method test_deeply_nested_partial_load (line 2247) | def test_deeply_nested_partial_load(self): method test_nested_partial_tuple (line 2271) | def test_nested_partial_tuple(self): method test_nested_partial_default (line 2287) | def test_nested_partial_default(self): function test_required_field_failure (line 2304) | def test_required_field_failure(FieldClass): function test_required_message_can_be_changed (line 2323) | def test_required_message_can_be_changed(message): function test_deserialize_raises_exception_if_input_type_is_incorrect (line 2337) | def test_deserialize_raises_exception_if_input_type_is_incorrect(data, u... FILE: tests/test_error_store.py function test_missing_is_falsy (line 7) | def test_missing_is_falsy(): class CustomError (line 11) | class CustomError(NamedTuple): class TestMergeErrors (line 16) | class TestMergeErrors: method test_merging_none_and_string (line 17) | def test_merging_none_and_string(self): method test_merging_none_and_custom_error (line 20) | def test_merging_none_and_custom_error(self): method test_merging_none_and_list (line 25) | def test_merging_none_and_list(self): method test_merging_none_and_dict (line 28) | def test_merging_none_and_dict(self): method test_merging_string_and_none (line 31) | def test_merging_string_and_none(self): method test_merging_custom_error_and_none (line 34) | def test_merging_custom_error_and_none(self): method test_merging_list_and_none (line 39) | def test_merging_list_and_none(self): method test_merging_dict_and_none (line 42) | def test_merging_dict_and_none(self): method test_merging_string_and_string (line 45) | def test_merging_string_and_string(self): method test_merging_custom_error_and_string (line 48) | def test_merging_custom_error_and_string(self): method test_merging_string_and_custom_error (line 53) | def test_merging_string_and_custom_error(self): method test_merging_custom_error_and_custom_error (line 58) | def test_merging_custom_error_and_custom_error(self): method test_merging_string_and_list (line 63) | def test_merging_string_and_list(self): method test_merging_string_and_dict (line 66) | def test_merging_string_and_dict(self): method test_merging_string_and_dict_with_schema_error (line 72) | def test_merging_string_and_dict_with_schema_error(self): method test_merging_custom_error_and_list (line 78) | def test_merging_custom_error_and_list(self): method test_merging_custom_error_and_dict (line 83) | def test_merging_custom_error_and_dict(self): method test_merging_custom_error_and_dict_with_schema_error (line 89) | def test_merging_custom_error_and_dict_with_schema_error(self): method test_merging_list_and_string (line 97) | def test_merging_list_and_string(self): method test_merging_list_and_custom_error (line 100) | def test_merging_list_and_custom_error(self): method test_merging_list_and_list (line 105) | def test_merging_list_and_list(self): method test_merging_list_and_dict (line 108) | def test_merging_list_and_dict(self): method test_merging_list_and_dict_with_schema_error (line 114) | def test_merging_list_and_dict_with_schema_error(self): method test_merging_dict_and_string (line 120) | def test_merging_dict_and_string(self): method test_merging_dict_and_custom_error (line 126) | def test_merging_dict_and_custom_error(self): method test_merging_dict_and_list (line 132) | def test_merging_dict_and_list(self): method test_merging_dict_and_dict (line 138) | def test_merging_dict_and_dict(self): method test_deep_merging_dicts (line 148) | def test_deep_merging_dicts(self): method test_list_not_changed (line 153) | def test_list_not_changed(self): method test_dict_not_changed (line 161) | def test_dict_not_changed(self): FILE: tests/test_exceptions.py class TestValidationError (line 6) | class TestValidationError: method test_stores_message_in_list (line 7) | def test_stores_message_in_list(self): method test_can_pass_list_of_messages (line 11) | def test_can_pass_list_of_messages(self): method test_stores_dictionaries (line 15) | def test_stores_dictionaries(self): method test_can_store_field_name (line 20) | def test_can_store_field_name(self): method test_str (line 24) | def test_str(self): method test_stores_dictionaries_in_messages_dict (line 31) | def test_stores_dictionaries_in_messages_dict(self): method test_messages_dict_type_error_on_badval (line 36) | def test_messages_dict_type_error_on_badval(self): FILE: tests/test_fields.py function test_field_aliases (line 26) | def test_field_aliases(alias, field): class TestField (line 30) | class TestField: method test_repr (line 31) | def test_repr(self): method test_error_raised_if_uncallable_validator_passed (line 44) | def test_error_raised_if_uncallable_validator_passed(self): method test_error_raised_if_missing_is_set_on_required_field (line 48) | def test_error_raised_if_missing_is_set_on_required_field(self): method test_custom_field_receives_attr_and_obj (line 54) | def test_custom_field_receives_attr_and_obj(self): method test_custom_field_receives_data_key_if_set (line 67) | def test_custom_field_receives_data_key_if_set(self): method test_custom_field_follows_data_key_if_set (line 80) | def test_custom_field_follows_data_key_if_set(self): class TestParentAndName (line 94) | class TestParentAndName: class MySchema (line 95) | class MySchema(Schema): method schema (line 102) | def schema(self): method test_simple_field_parent_and_name (line 105) | def test_simple_field_parent_and_name(self, schema): method test_unbound_field_root_returns_none (line 112) | def test_unbound_field_root_returns_none(self): method test_list_field_inner_parent_and_name (line 122) | def test_list_field_inner_parent_and_name(self, schema): method test_tuple_field_inner_parent_and_name (line 126) | def test_tuple_field_inner_parent_and_name(self, schema): method test_mapping_field_inner_parent_and_name (line 131) | def test_mapping_field_inner_parent_and_name(self, schema): method test_simple_field_root (line 137) | def test_simple_field_root(self, schema): method test_list_field_inner_root (line 141) | def test_list_field_inner_root(self, schema): method test_tuple_field_inner_root (line 144) | def test_tuple_field_inner_root(self, schema): method test_list_root_inheritance (line 148) | def test_list_root_inheritance(self, schema): method test_dict_root_inheritance (line 162) | def test_dict_root_inheritance(self): method test_datetime_list_inner_format (line 187) | def test_datetime_list_inner_format(self, schema): method test_field_named_parent_has_root (line 205) | def test_field_named_parent_has_root(self, schema): class TestMetadata (line 213) | class TestMetadata: method test_extra_metadata_may_be_added_to_field (line 215) | def test_extra_metadata_may_be_added_to_field(self, FieldClass): class TestErrorMessages (line 225) | class TestErrorMessages: class MyField (line 226) | class MyField(fields.Field): method test_default_error_messages_get_merged_with_parent_error_messages_cstm_msg (line 236) | def test_default_error_messages_get_merged_with_parent_error_messages_... method test_default_error_messages_get_merged_with_parent_error_messages (line 243) | def test_default_error_messages_get_merged_with_parent_error_messages(... method test_make_error (line 248) | def test_make_error(self, key, message): method test_make_error_key_doesnt_exist (line 254) | def test_make_error_key_doesnt_exist(self): class TestNestedField (line 261) | class TestNestedField: method test_nested_only_and_exclude_as_string (line 263) | def test_nested_only_and_exclude_as_string(self, param): method test_nested_instantiation_from_dict (line 274) | def test_nested_instantiation_from_dict(self, nested_value): method test_nested_unknown_override (line 288) | def test_nested_unknown_override(self, schema_unknown, field_unknown): method test_nested_schema_only_and_exclude (line 311) | def test_nested_schema_only_and_exclude(self, param, fields_list): class TestListNested (line 327) | class TestListNested: method test_list_nested_only_exclude_dump_only_load_only_propagated_to_nested (line 329) | def test_list_nested_only_exclude_dump_only_load_only_propagated_to_ne... method test_list_nested_class_only_and_exclude_merged_with_nested (line 352) | def test_list_nested_class_only_and_exclude_merged_with_nested( method test_list_nested_class_multiple_dumps (line 371) | def test_list_nested_class_multiple_dumps(self): method test_list_nested_instance_only_and_exclude_merged_with_nested (line 395) | def test_list_nested_instance_only_and_exclude_merged_with_nested( method test_list_nested_instance_multiple_dumps (line 415) | def test_list_nested_instance_multiple_dumps(self): method test_list_nested_lambda_only_and_exclude_merged_with_nested (line 439) | def test_list_nested_lambda_only_and_exclude_merged_with_nested( method test_list_nested_partial_propagated_to_nested (line 461) | def test_list_nested_partial_propagated_to_nested(self): class TestTupleNested (line 490) | class TestTupleNested: method test_tuple_nested_only_exclude_dump_only_load_only_propagated_to_nested (line 492) | def test_tuple_nested_only_exclude_dump_only_load_only_propagated_to_n... method test_tuple_nested_partial_propagated_to_nested (line 511) | def test_tuple_nested_partial_propagated_to_nested(self): class TestDictNested (line 540) | class TestDictNested: method test_dict_nested_only_exclude_dump_only_load_only_propagated_to_nested (line 542) | def test_dict_nested_only_exclude_dump_only_load_only_propagated_to_ne... method test_dict_nested_only_and_exclude_merged_with_nested (line 562) | def test_dict_nested_only_and_exclude_merged_with_nested(self, param, ... method test_dict_nested_partial_propagated_to_nested (line 578) | def test_dict_nested_partial_propagated_to_nested(self): FILE: tests/test_options.py class UserSchema (line 6) | class UserSchema(Schema): class ProfileSchema (line 16) | class ProfileSchema(Schema): class TestFieldOrdering (line 20) | class TestFieldOrdering: method test_declared_field_order_is_maintained_on_dump (line 21) | def test_declared_field_order_is_maintained_on_dump(self, user): method test_declared_field_order_is_maintained_on_load (line 35) | def test_declared_field_order_is_maintained_on_load(self, serialized_u... method test_nested_field_order_with_only_arg_is_maintained_on_dump (line 49) | def test_nested_field_order_with_only_arg_is_maintained_on_dump(self, ... method test_nested_field_order_with_only_arg_is_maintained_on_load (line 64) | def test_nested_field_order_with_only_arg_is_maintained_on_load(self): method test_nested_field_order_with_exclude_arg_is_maintained (line 91) | def test_nested_field_order_with_exclude_arg_is_maintained(self, user): class TestIncludeOption (line 102) | class TestIncludeOption: class AddFieldsSchema (line 103) | class AddFieldsSchema(Schema): class Meta (line 106) | class Meta: method test_fields_are_added (line 109) | def test_fields_are_added(self): method test_included_fields_ordered_after_declared_fields (line 115) | def test_included_fields_ordered_after_declared_fields(self): method test_added_fields_are_inherited (line 142) | def test_added_fields_are_inherited(self): class TestManyOption (line 152) | class TestManyOption: class ManySchema (line 153) | class ManySchema(Schema): class Meta (line 156) | class Meta: method test_many_by_default (line 159) | def test_many_by_default(self): method test_explicit_single (line 163) | def test_explicit_single(self): FILE: tests/test_registry.py function test_serializer_has_class_registry (line 7) | def test_serializer_has_class_registry(): function test_register_class_meta_option (line 22) | def test_register_class_meta_option(): function test_serializer_class_registry_register_same_classname_different_module (line 54) | def test_serializer_class_registry_register_same_classname_different_mod... function test_serializer_class_registry_override_if_same_classname_same_module (line 90) | def test_serializer_class_registry_override_if_same_classname_same_modul... class A (line 123) | class A: method __init__ (line 124) | def __init__(self, _id, b=None): class B (line 129) | class B: method __init__ (line 130) | def __init__(self, _id, a=None): class C (line 135) | class C: method __init__ (line 136) | def __init__(self, _id, bs=None): class ASchema (line 141) | class ASchema(Schema): class BSchema (line 146) | class BSchema(Schema): class CSchema (line 151) | class CSchema(Schema): function test_two_way_nesting (line 156) | def test_two_way_nesting(): function test_nesting_with_class_name_many (line 167) | def test_nesting_with_class_name_many(): function test_invalid_class_name_in_nested_field_raises_error (line 176) | def test_invalid_class_name_in_nested_field_raises_error(user): class FooSerializer (line 186) | class FooSerializer(Schema): function test_multiple_classes_with_same_name_raises_error (line 190) | def test_multiple_classes_with_same_name_raises_error(): function test_multiple_classes_with_all (line 205) | def test_multiple_classes_with_all(): function test_can_use_full_module_path_to_class (line 213) | def test_can_use_full_module_path_to_class(): FILE: tests/test_schema.py function test_serializing_basic_object (line 44) | def test_serializing_basic_object(user): function test_serializer_dump (line 52) | def test_serializer_dump(user): function test_load_resets_errors (line 58) | def test_load_resets_errors(): function test_load_validation_error_stores_input_data_and_valid_data (line 75) | def test_load_validation_error_stores_input_data_and_valid_data(): function test_load_resets_error_fields (line 101) | def test_load_resets_error_fields(): function test_errored_fields_do_not_appear_in_output (line 118) | def test_errored_fields_do_not_appear_in_output(): function test_load_many_stores_error_indices (line 140) | def test_load_many_stores_error_indices(): function test_dump_many (line 155) | def test_dump_many(): function test_multiple_errors_can_be_stored_for_a_given_index (line 163) | def test_multiple_errors_can_be_stored_for_a_given_index(): function test_dump_returns_a_dict (line 179) | def test_dump_returns_a_dict(user): function test_dumps_returns_a_string (line 185) | def test_dumps_returns_a_string(user): function test_dumping_single_object_with_collection_schema (line 191) | def test_dumping_single_object_with_collection_schema(user): function test_loading_single_object_with_collection_schema (line 198) | def test_loading_single_object_with_collection_schema(): function test_dumps_many (line 206) | def test_dumps_many(): function test_load_returns_an_object (line 215) | def test_load_returns_an_object(): function test_load_many (line 221) | def test_load_many(): function test_load_invalid_input_type (line 231) | def test_load_invalid_input_type(val): function test_load_many_invalid_input_type (line 243) | def test_load_many_invalid_input_type(val): function test_load_many_empty_collection (line 254) | def test_load_many_empty_collection(val): function test_load_many_in_nested_invalid_input_type (line 262) | def test_load_many_in_nested_invalid_input_type(val): function test_load_many_in_nested_empty_collection (line 280) | def test_load_many_in_nested_empty_collection(val): function test_loads_returns_a_user (line 291) | def test_loads_returns_a_user(): function test_loads_many (line 297) | def test_loads_many(): function test_loads_deserializes_from_json (line 306) | def test_loads_deserializes_from_json(): function test_serializing_none (line 315) | def test_serializing_none(): function test_default_many_symmetry (line 325) | def test_default_many_symmetry(): function test_on_bind_field_hook (line 336) | def test_on_bind_field_hook(): function test_nested_on_bind_field_hook (line 348) | def test_nested_on_bind_field_hook(): class TestValidate (line 365) | class TestValidate: method test_validate_raises_with_errors_dict (line 366) | def test_validate_raises_with_errors_dict(self): method test_validate_many (line 377) | def test_validate_many(self): method test_validate_many_doesnt_store_index_if_index_errors_option_is_false (line 387) | def test_validate_many_doesnt_store_index_if_index_errors_option_is_fa... method test_validate (line 403) | def test_validate(self): method test_validate_required (line 408) | def test_validate_required(self): function test_fields_are_not_copies (line 418) | def test_fields_are_not_copies(): function test_dumps_returns_json (line 424) | def test_dumps_returns_json(user): function test_naive_datetime_field (line 433) | def test_naive_datetime_field(user, serialized_user): function test_datetime_formatted_field (line 438) | def test_datetime_formatted_field(user, serialized_user): function test_datetime_iso_field (line 443) | def test_datetime_iso_field(user, serialized_user): function test_tz_datetime_field (line 447) | def test_tz_datetime_field(user, serialized_user): function test_class_variable (line 453) | def test_class_variable(serialized_user): function test_serialize_many (line 457) | def test_serialize_many(): function test_inheriting_schema (line 467) | def test_inheriting_schema(user): function test_custom_field (line 476) | def test_custom_field(serialized_user, user): function test_url_field (line 480) | def test_url_field(serialized_user, user): function test_relative_url_field (line 484) | def test_relative_url_field(): function test_stores_invalid_url_error (line 489) | def test_stores_invalid_url_error(): function test_email_field (line 499) | def test_email_field(): function test_stored_invalid_email (line 505) | def test_stored_invalid_email(): function test_integer_field (line 514) | def test_integer_field(): function test_as_string (line 521) | def test_as_string(): function test_method_field (line 528) | def test_method_field(serialized_user): function test_function_field (line 534) | def test_function_field(serialized_user, user): function test_fields_must_be_declared_as_instances (line 538) | def test_fields_must_be_declared_as_instances(user): function test_bind_field_does_not_swallow_typeerror (line 548) | def test_bind_field_does_not_swallow_typeerror(): function test_serializing_generator (line 559) | def test_serializing_generator(): function test_serializing_empty_list_returns_empty_list (line 567) | def test_serializing_empty_list_returns_empty_list(): function test_serializing_dict (line 571) | def test_serializing_dict(): function test_exclude_in_init (line 584) | def test_exclude_in_init(user): function test_only_in_init (line 591) | def test_only_in_init(user): function test_invalid_only_param (line 598) | def test_invalid_only_param(user): function test_can_serialize_uuid (line 603) | def test_can_serialize_uuid(serialized_user, user): function test_can_serialize_time (line 607) | def test_can_serialize_time(user, serialized_user): function test_render_module (line 612) | def test_render_module(): function test_custom_error_message (line 625) | def test_custom_error_message(): function test_custom_unknown_error_message (line 641) | def test_custom_unknown_error_message(): function test_custom_type_error_message (line 656) | def test_custom_type_error_message(): function test_custom_type_error_message_with_many (line 671) | def test_custom_type_error_message_with_many(): function test_custom_error_messages_with_inheritance (line 686) | def test_custom_error_messages_with_inheritance(): function test_load_errors_with_many (line 720) | def test_load_errors_with_many(): function test_error_raised_if_fields_option_is_not_list (line 739) | def test_error_raised_if_fields_option_is_not_list(): function test_nested_custom_set_in_exclude_reusing_schema (line 749) | def test_nested_custom_set_in_exclude_reusing_schema(): function test_nested_only (line 777) | def test_nested_only(): function test_nested_only_inheritance (line 800) | def test_nested_only_inheritance(): function test_nested_only_empty_inheritance (line 823) | def test_nested_only_empty_inheritance(): function test_nested_exclude (line 846) | def test_nested_exclude(): function test_nested_exclude_inheritance (line 869) | def test_nested_exclude_inheritance(): function test_nested_only_and_exclude (line 892) | def test_nested_only_and_exclude(): function test_nested_only_then_exclude_inheritance (line 915) | def test_nested_only_then_exclude_inheritance(): function test_nested_exclude_then_only_inheritance (line 938) | def test_nested_exclude_then_only_inheritance(): function test_nested_exclude_and_only_inheritance (line 961) | def test_nested_exclude_and_only_inheritance(): function test_nested_instance_many (line 993) | def test_nested_instance_many(): function test_nested_many_should_override_schema_many_case1 (line 1015) | def test_nested_many_should_override_schema_many_case1(): function test_nested_many_should_override_schema_many_case2 (line 1037) | def test_nested_many_should_override_schema_many_case2(): function test_nested_instance_only (line 1059) | def test_nested_instance_only(): function test_nested_instance_exclude (line 1076) | def test_nested_instance_exclude(): function test_meta_nested_exclude (line 1093) | def test_meta_nested_exclude(): function test_nested_custom_set_not_implementing_getitem (line 1132) | def test_nested_custom_set_not_implementing_getitem(): function test_deeply_nested_only_and_exclude (line 1186) | def test_deeply_nested_only_and_exclude(): function test_nested_lambda (line 1221) | def test_nested_lambda(): function test_data_key_collision (line 1271) | def test_data_key_collision(data_key): function test_attribute_collision (line 1286) | def test_attribute_collision(attribute): class TestDeeplyNestedLoadOnly (line 1300) | class TestDeeplyNestedLoadOnly: method schema (line 1302) | def schema(self): method data (line 1334) | def data(self): method test_load_only (line 1351) | def test_load_only(self, schema, data): method test_dump_only (line 1365) | def test_dump_only(self, schema, data): class TestDeeplyNestedListLoadOnly (line 1380) | class TestDeeplyNestedListLoadOnly: method schema (line 1382) | def schema(self): method data (line 1400) | def data(self): method test_load_only (line 1414) | def test_load_only(self, schema, data): method test_dump_only (line 1424) | def test_dump_only(self, schema, data): function test_nested_constructor_only_and_exclude (line 1435) | def test_nested_constructor_only_and_exclude(): function test_only_and_exclude (line 1469) | def test_only_and_exclude(): function test_invalid_only_and_exclude_with_fields (line 1482) | def test_invalid_only_and_exclude_with_fields(): function test_exclude_invalid_attribute (line 1497) | def test_exclude_invalid_attribute(): function test_only_bounded_by_fields (line 1505) | def test_only_bounded_by_fields(): function test_only_bounded_by_additional (line 1514) | def test_only_bounded_by_additional(): function test_only_empty (line 1523) | def test_only_empty(): function test_only_and_exclude_as_string (line 1532) | def test_only_and_exclude_as_string(param): function test_nested_with_sets (line 1540) | def test_nested_with_sets(): function test_meta_field_not_on_obj_raises_attribute_error (line 1557) | def test_meta_field_not_on_obj_raises_attribute_error(user): function test_exclude_fields (line 1567) | def test_exclude_fields(user): function test_fields_option_must_be_list_or_tuple (line 1574) | def test_fields_option_must_be_list_or_tuple(): function test_exclude_option_must_be_list_or_tuple (line 1582) | def test_exclude_option_must_be_list_or_tuple(): function test_datetimeformat_option (line 1590) | def test_datetimeformat_option(user): function test_dateformat_option (line 1606) | def test_dateformat_option(user): function test_timeformat_option (line 1622) | def test_timeformat_option(user): function test_default_dateformat (line 1638) | def test_default_dateformat(user): class CustomError (line 1648) | class CustomError(Exception): class MySchema (line 1652) | class MySchema(Schema): method handle_error (line 1657) | def handle_error(self, error, data, *args, **kwargs): method test_load_with_custom_error_handler (line 1660) | def test_load_with_custom_error_handler(self): method test_load_with_custom_error_handler_and_partially_valid_data (line 1677) | def test_load_with_custom_error_handler_and_partially_valid_data(self): method test_custom_error_handler_with_validates_decorator (line 1695) | def test_custom_error_handler_with_validates_decorator(self): method test_custom_error_handler_with_validates_schema_decorator (line 1717) | def test_custom_error_handler_with_validates_schema_decorator(self): method test_validate_with_custom_error_handler (line 1737) | def test_validate_with_custom_error_handler(self): class TestFieldValidation (line 1742) | class TestFieldValidation: method test_errors_are_cleared_after_loading_collection (line 1743) | def test_errors_are_cleared_after_loading_collection(self): method test_raises_error_with_list (line 1761) | def test_raises_error_with_list(self): method test_raises_error_with_dict (line 1773) | def test_raises_error_with_dict(self): method test_ignored_if_not_in_only (line 1784) | def test_ignored_if_not_in_only(self): function test_schema_repr (line 1802) | def test_schema_repr(): class TestNestedSchema (line 1812) | class TestNestedSchema: method user (line 1814) | def user(self): method blog (line 1818) | def blog(self, user): method test_nested_many_with_missing_attribute (line 1829) | def test_nested_many_with_missing_attribute(self, user): method test_nested_with_attribute_none (line 1839) | def test_nested_with_attribute_none(self): method test_nested_field_does_not_validate_required (line 1857) | def test_nested_field_does_not_validate_required(self): method test_nested_none (line 1864) | def test_nested_none(self): method test_nested (line 1872) | def test_nested(self, user, blog): method test_nested_many_fields (line 1884) | def test_nested_many_fields(self, blog): method test_nested_only (line 1889) | def test_nested_only(self, blog): method test_exclude (line 1896) | def test_exclude(self, blog): method test_list_field (line 1900) | def test_list_field(self, blog): method test_nested_load_many (line 1904) | def test_nested_load_many(self): method test_nested_errors (line 1918) | def test_nested_errors(self): method test_nested_method_field (line 1930) | def test_nested_method_field(self, blog): method test_nested_function_field (line 1935) | def test_nested_function_field(self, blog, user): method test_nested_fields_must_be_passed_a_serializer (line 1941) | def test_nested_fields_must_be_passed_a_serializer(self, blog): method test_invalid_type_passed_to_nested_field (line 1949) | def test_invalid_type_passed_to_nested_field(self): method test_all_errors_on_many_nested_field_with_validates_decorator (line 1976) | def test_all_errors_on_many_nested_field_with_validates_decorator(self): method test_nested_unknown_validation (line 1995) | def test_nested_unknown_validation(self, unknown): class TestPluckSchema (line 2016) | class TestPluckSchema: method test_pluck (line 2018) | def test_pluck(self, user_schema, blog): method test_pluck_none (line 2029) | def test_pluck_none(self, blog): method test_pluck_with_data_key (line 2044) | def test_pluck_with_data_key(self, blog): class TestSelfReference (line 2064) | class TestSelfReference: method employer (line 2066) | def employer(self): method user (line 2070) | def user(self, employer): method test_nesting_schema_by_passing_lambda (line 2073) | def test_nesting_schema_by_passing_lambda(self, user, employer): method test_nesting_schema_by_passing_class_name (line 2086) | def test_nesting_schema_by_passing_class_name(self, user, employer): method test_nesting_within_itself_exclude (line 2097) | def test_nesting_within_itself_exclude(self, user, employer): method test_nested_self_with_only_param (line 2109) | def test_nested_self_with_only_param(self, user, employer): method test_multiple_pluck_self_lambda (line 2119) | def test_multiple_pluck_self_lambda(self, user): method test_nested_self_many_lambda (line 2136) | def test_nested_self_many_lambda(self): method test_nested_self_list (line 2150) | def test_nested_self_list(self): class RequiredUserSchema (line 2165) | class RequiredUserSchema(Schema): function test_serialization_with_required_field (line 2169) | def test_serialization_with_required_field(): function test_deserialization_with_required_field (line 2174) | def test_deserialization_with_required_field(): function test_deserialization_with_required_field_and_custom_validator (line 2185) | def test_deserialization_with_required_field_and_custom_validator(): function test_serializer_can_specify_nested_object_as_attribute (line 2210) | def test_serializer_can_specify_nested_object_as_attribute(blog): class TestFieldInheritance (line 2219) | class TestFieldInheritance: method test_inherit_fields_from_schema_subclass (line 2220) | def test_inherit_fields_from_schema_subclass(self): method test_inherit_fields_from_non_schema_subclass (line 2234) | def test_inherit_fields_from_non_schema_subclass(self): method test_inheritance_follows_mro (line 2252) | def test_inheritance_follows_mro(self): function get_from_dict (line 2277) | def get_from_dict(schema, obj, key, default=None): class TestGetAttribute (line 2281) | class TestGetAttribute: method test_get_attribute_is_used (line 2282) | def test_get_attribute_is_used(self): method test_get_attribute_with_many (line 2300) | def test_get_attribute_with_many(self): class TestRequiredFields (line 2326) | class TestRequiredFields: class StringSchema (line 2327) | class StringSchema(Schema): method string_schema (line 2333) | def string_schema(self): method data (line 2337) | def data(self): method test_required_string_field_missing (line 2344) | def test_required_string_field_missing(self, string_schema, data): method test_required_string_field_failure (line 2349) | def test_required_string_field_failure(self, string_schema, data): method test_allow_none_param (line 2354) | def test_allow_none_param(self, string_schema, data): method test_allow_none_custom_message (line 2366) | def test_allow_none_custom_message(self, data): class TestDefaults (line 2377) | class TestDefaults: class MySchema (line 2378) | class MySchema(Schema): method schema (line 2388) | def schema(self): method data (line 2392) | def data(self): method test_missing_inputs_are_excluded_from_dump_output (line 2402) | def test_missing_inputs_are_excluded_from_dump_output(self, schema, da... method test_none_is_serialized_to_none (line 2417) | def test_none_is_serialized_to_none(self, schema, data): method test_default_and_value_missing (line 2425) | def test_default_and_value_missing(self, schema, data): method test_loading_none (line 2432) | def test_loading_none(self, schema, data): method test_missing_inputs_are_excluded_from_load_output (line 2437) | def test_missing_inputs_are_excluded_from_load_output(self, schema, da... class TestLoadOnly (line 2453) | class TestLoadOnly: class MySchema (line 2454) | class MySchema(Schema): class Meta (line 2455) | class Meta: method schema (line 2464) | def schema(self): method data (line 2468) | def data(self): method test_load_only (line 2475) | def test_load_only(self, schema, data): method test_dump_only (line 2481) | def test_dump_only(self, schema, data): method test_url_field_requre_tld_false (line 2488) | def test_url_field_requre_tld_false(self): class TestFromDict (line 2498) | class TestFromDict: method test_generates_schema (line 2499) | def test_generates_schema(self): method test_name (line 2503) | def test_name(self): method test_generated_schemas_are_not_registered (line 2511) | def test_generated_schemas_are_not_registered(self): method test_meta_options_are_applied (line 2521) | def test_meta_options_are_applied(self): function test_class_registry_returns_schema_type (line 2531) | def test_class_registry_returns_schema_type(): function test_set_dict_class (line 2542) | def test_set_dict_class(dict_cls): FILE: tests/test_serialization.py class Point (line 19) | class Point(NamedTuple): class DateTimeList (line 24) | class DateTimeList: method __init__ (line 25) | def __init__(self, dtimes): class IntegerList (line 29) | class IntegerList: method __init__ (line 30) | def __init__(self, ints): class DateTimeIntegerTuple (line 34) | class DateTimeIntegerTuple: method __init__ (line 35) | def __init__(self, dtime_int): class TestFieldSerialization (line 39) | class TestFieldSerialization: method user (line 41) | def user(self): method test_function_field_passed_func (line 44) | def test_function_field_passed_func(self, user): method test_function_field_passed_serialize_only_is_dump_only (line 48) | def test_function_field_passed_serialize_only_is_dump_only(self, user): method test_function_field_passed_deserialize_and_serialize_is_not_dump_only (line 52) | def test_function_field_passed_deserialize_and_serialize_is_not_dump_o... method test_function_field_passed_serialize (line 58) | def test_function_field_passed_serialize(self, user): method test_function_field_does_not_swallow_attribute_error (line 63) | def test_function_field_does_not_swallow_attribute_error(self, user): method test_serialize_with_load_only_param (line 71) | def test_serialize_with_load_only_param(self): method test_function_field_load_only (line 90) | def test_function_field_load_only(self): method test_function_field_passed_uncallable_object (line 94) | def test_function_field_passed_uncallable_object(self): method test_integer_field (line 98) | def test_integer_field(self, user): method test_integer_as_string_field (line 102) | def test_integer_as_string_field(self, user): method test_integer_field_default (line 106) | def test_integer_field_default(self, user): method test_integer_field_default_set_to_none (line 113) | def test_integer_field_default_set_to_none(self, user): method test_uuid_field (line 118) | def test_uuid_field(self, user): method test_ip_address_field (line 127) | def test_ip_address_field(self, user): method test_ipv4_address_field (line 147) | def test_ipv4_address_field(self, user): method test_ipv6_address_field (line 158) | def test_ipv6_address_field(self, user): method test_ip_interface_field (line 174) | def test_ip_interface_field(self, user): method test_ipv4_interface_field (line 199) | def test_ipv4_interface_field(self, user): method test_ipv6_interface_field (line 210) | def test_ipv6_interface_field(self, user): method test_enum_field_by_symbol_serialization (line 231) | def test_enum_field_by_symbol_serialization(self, user): method test_enum_field_by_value_true_serialization (line 236) | def test_enum_field_by_value_true_serialization(self, user): method test_enum_field_by_value_field_serialization (line 245) | def test_enum_field_by_value_field_serialization(self, user): method test_decimal_field (line 256) | def test_decimal_field(self, user): method test_decimal_field_string (line 289) | def test_decimal_field_string(self, user): method test_decimal_field_special_values (line 322) | def test_decimal_field_special_values(self, user): method test_decimal_field_special_values_not_permitted (line 382) | def test_decimal_field_special_values_not_permitted(self, user): method test_decimal_field_fixed_point_representation (line 392) | def test_decimal_field_fixed_point_representation(self, user): method test_email_field_serialize_none (line 414) | def test_email_field_serialize_none(self, user): method test_dict_field_serialize_none (line 419) | def test_dict_field_serialize_none(self, user): method test_dict_field_serialize (line 424) | def test_dict_field_serialize(self, user): method test_dict_field_serialize_ordereddict (line 433) | def test_dict_field_serialize_ordereddict(self, user): method test_structured_dict_value_serialize (line 440) | def test_structured_dict_value_serialize(self, user): method test_structured_dict_key_serialize (line 445) | def test_structured_dict_key_serialize(self, user): method test_structured_dict_key_value_serialize (line 450) | def test_structured_dict_key_value_serialize(self, user): method test_url_field_serialize_none (line 455) | def test_url_field_serialize_none(self, user): method test_method_field_with_method_missing (line 460) | def test_method_field_with_method_missing(self): method test_method_field_passed_serialize_only_is_dump_only (line 467) | def test_method_field_passed_serialize_only_is_dump_only(self, user): method test_method_field_passed_deserialize_only_is_load_only (line 472) | def test_method_field_passed_deserialize_only_is_load_only(self): method test_method_field_with_uncallable_attribute (line 477) | def test_method_field_with_uncallable_attribute(self): method test_method_field_does_not_swallow_attribute_error (line 486) | def test_method_field_does_not_swallow_attribute_error(self): method test_method_with_no_serialize_is_missing (line 496) | def test_method_with_no_serialize_is_missing(self): method test_serialize_with_data_key_param (line 502) | def test_serialize_with_data_key_param(self): method test_serialize_with_data_key_as_empty_string (line 511) | def test_serialize_with_data_key_as_empty_string(self): method test_serialize_with_attribute_and_data_key_uses_data_key (line 518) | def test_serialize_with_attribute_and_data_key_uses_data_key(self): method test_datetime_field_rfc822 (line 548) | def test_datetime_field_rfc822(self, fmt, value, expected): method test_datetime_field_timestamp (line 580) | def test_datetime_field_timestamp(self, fmt, value, expected): method test_datetime_field_iso8601 (line 603) | def test_datetime_field_iso8601(self, fmt, value, expected): method test_datetime_field_format (line 611) | def test_datetime_field_format(self, user): method test_string_field (line 616) | def test_string_field(self): method test_string_field_default_to_empty_string (line 624) | def test_string_field_default_to_empty_string(self, user): method test_time_field (line 628) | def test_time_field(self, user): method test_time_field_iso8601 (line 645) | def test_time_field_iso8601(self, fmt, value, expected): method test_time_field_format (line 653) | def test_time_field_format(self, user): method test_date_field (line 658) | def test_date_field(self, user): method test_timedelta_field (line 665) | def test_timedelta_field(self, user): method test_datetime_list_field (line 793) | def test_datetime_list_field(self): method test_list_field_serialize_none_returns_none (line 799) | def test_list_field_serialize_none_returns_none(self): method test_list_field_work_with_generator_single_value (line 804) | def test_list_field_work_with_generator_single_value(self): method test_list_field_work_with_generators_multiple_values (line 813) | def test_list_field_work_with_generators_multiple_values(self): method test_list_field_work_with_generators_empty_generator_returns_none_for_every_non_returning_yield_statement (line 822) | def test_list_field_work_with_generators_empty_generator_returns_none_... method test_list_field_work_with_set (line 836) | def test_list_field_work_with_set(self): method test_list_field_work_with_custom_class_with_iterator_protocol (line 846) | def test_list_field_work_with_custom_class_with_iterator_protocol(self): method test_bad_list_field (line 863) | def test_bad_list_field(self): method test_datetime_integer_tuple_field (line 876) | def test_datetime_integer_tuple_field(self): method test_tuple_field_serialize_none_returns_none (line 883) | def test_tuple_field_serialize_none_returns_none(self): method test_bad_tuple_field (line 888) | def test_bad_tuple_field(self): method test_serialize_does_not_apply_validators (line 903) | def test_serialize_does_not_apply_validators(self, user): method test_constant_field_serialization (line 908) | def test_constant_field_serialization(self, user): method test_constant_is_always_included_in_serialized_data (line 912) | def test_constant_is_always_included_in_serialized_data(self): method test_constant_field_serialize_when_omitted (line 920) | def test_constant_field_serialize_when_omitted(self): method test_all_fields_serialize_none_to_none (line 928) | def test_all_fields_serialize_none_to_none(self, FieldClass): class TestSchemaSerialization (line 934) | class TestSchemaSerialization: method test_serialize_with_missing_param_value (line 935) | def test_serialize_with_missing_param_value(self): method test_serialize_with_missing_param_callable (line 945) | def test_serialize_with_missing_param_callable(self): function test_serializing_named_tuple (line 956) | def test_serializing_named_tuple(): function test_serializing_named_tuple_with_meta (line 964) | def test_serializing_named_tuple_with_meta(): function test_serializing_slice (line 976) | def test_serializing_slice(): function test_nested_field_many_serializing_generator (line 988) | def test_nested_field_many_serializing_generator(): FILE: tests/test_utils.py function test_missing_singleton_copy (line 12) | def test_missing_singleton_copy(): class PointNT (line 17) | class PointNT(NamedTuple): class PointClass (line 22) | class PointClass: method __init__ (line 23) | def __init__(self, x, y): class PointDict (line 28) | class PointDict(dict): method __init__ (line 29) | def __init__(self, x, y): function test_get_value_from_object (line 37) | def test_get_value_from_object(obj): function test_get_value_from_namedtuple_with_default (line 42) | def test_get_value_from_namedtuple_with_default(): class Triangle (line 50) | class Triangle: method __init__ (line 51) | def __init__(self, p1, p2, p3): function test_get_value_for_nested_object (line 58) | def test_get_value_for_nested_object(): function test_get_value_from_dict (line 66) | def test_get_value_from_dict(): function test_get_value (line 72) | def test_get_value(): function test_set_value (line 82) | def test_set_value(): function test_is_collection (line 100) | def test_is_collection(): function test_from_timestamp (line 113) | def test_from_timestamp(value, expected): function test_from_timestamp_with_negative_value (line 119) | def test_from_timestamp_with_negative_value(): function test_from_timestamp_with_overflow_value (line 125) | def test_from_timestamp_with_overflow_value(): function test_function_field_using_type_annotation (line 132) | def test_function_field_using_type_annotation(): FILE: tests/test_validate.py function test_url_absolute_valid (line 37) | def test_url_absolute_valid(valid_url): function test_url_absolute_invalid (line 72) | def test_url_absolute_invalid(invalid_url): function test_url_relative_valid (line 93) | def test_url_relative_valid(valid_url): function test_url_relative_invalid (line 114) | def test_url_relative_invalid(invalid_url): function test_url_relative_only_valid (line 129) | def test_url_relative_only_valid(valid_url): function test_url_relative_only_invalid (line 156) | def test_url_relative_only_invalid(invalid_url): function test_url_dont_require_tld_valid (line 174) | def test_url_dont_require_tld_valid(valid_url): function test_url_dont_require_tld_invalid (line 191) | def test_url_dont_require_tld_invalid(invalid_url): function test_url_custom_scheme (line 197) | def test_url_custom_scheme(): function test_url_custom_scheme_case_insensitive (line 208) | def test_url_custom_scheme_case_insensitive(): function test_url_accepts_valid_file_urls (line 237) | def test_url_accepts_valid_file_urls(valid_url): function test_url_rejects_invalid_file_urls (line 252) | def test_url_rejects_invalid_file_urls(invalid_url): function test_url_relative_and_custom_schemes (line 258) | def test_url_relative_and_custom_schemes(): function test_url_custom_message (line 269) | def test_url_custom_message(): function test_url_repr (line 275) | def test_url_repr(): function test_url_rejects_invalid_relative_usage (line 287) | def test_url_rejects_invalid_relative_usage(): function test_email_valid (line 311) | def test_email_valid(valid_email): function test_email_invalid (line 336) | def test_email_invalid(invalid_email): function test_email_custom_message (line 342) | def test_email_custom_message(): function test_email_repr (line 348) | def test_email_repr(): function test_range_min (line 355) | def test_range_min(): function test_range_max (line 372) | def test_range_max(): function test_range_custom_message (line 389) | def test_range_custom_message(): function test_range_repr (line 403) | def test_range_repr(): function test_length_min (line 424) | def test_length_min(): function test_length_max (line 444) | def test_length_max(): function test_length_equal (line 464) | def test_length_equal(): function test_length_custom_message (line 483) | def test_length_custom_message(): function test_length_repr (line 501) | def test_length_repr(): function test_equal (line 514) | def test_equal(): function test_equal_custom_message (line 527) | def test_equal_custom_message(): function test_equal_repr (line 533) | def test_equal_repr(): function test_regexp_str (line 542) | def test_regexp_str(): function test_regexp_compile (line 558) | def test_regexp_compile(): function test_regexp_custom_message (line 577) | def test_regexp_custom_message(): function test_regexp_repr (line 584) | def test_regexp_repr(): function test_predicate (line 597) | def test_predicate(): function test_predicate_custom_message (line 634) | def test_predicate_custom_message(): function test_predicate_repr (line 647) | def test_predicate_repr(): function test_noneof (line 660) | def test_noneof(): function test_noneof_custom_message (line 678) | def test_noneof_custom_message(): function test_noneof_repr (line 687) | def test_noneof_repr(): function test_oneof (line 696) | def test_oneof(): function test_oneof_options (line 719) | def test_oneof_options(): function test_oneof_text (line 737) | def test_oneof_text(): function test_oneof_custom_message (line 751) | def test_oneof_custom_message(): function test_oneof_repr (line 767) | def test_oneof_repr(): function test_containsonly_in_list (line 780) | def test_containsonly_in_list(): function test_contains_only_unhashable_types (line 801) | def test_contains_only_unhashable_types(): function test_containsonly_in_tuple (line 817) | def test_containsonly_in_tuple(): function test_contains_only_in_string (line 833) | def test_contains_only_in_string(): function test_containsonly_custom_message (line 850) | def test_containsonly_custom_message(): function test_containsonly_repr (line 868) | def test_containsonly_repr(): function test_containsnoneof_error_message (line 881) | def test_containsnoneof_error_message(): function test_containsnoneof_in_list (line 903) | def test_containsnoneof_in_list(): function test_containsnoneof_unhashable_types (line 924) | def test_containsnoneof_unhashable_types(): function test_containsnoneof_in_tuple (line 949) | def test_containsnoneof_in_tuple(): function test_containsnoneof_in_string (line 970) | def test_containsnoneof_in_string(): function test_containsnoneof_custom_message (line 991) | def test_containsnoneof_custom_message(): function test_containsnoneof_mixing_types (line 1000) | def test_containsnoneof_mixing_types(): function is_even (line 1014) | def is_even(value): function test_and (line 1019) | def test_and():