Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ModelSerializer test failure against Django master #3428

Closed
@carltongibson

Description

@carltongibson

See build failure here

_________________ TestRegularFieldMappings.test_regular_fields _________________
tests/test_model_serializer.py:168: in test_regular_fields
    self.assertEqual(unicode_repr(TestSerializer()), expected)
E   AssertionError: "Test[446 chars]its=3, validators=[<django.core.validators.Dec[616 chars]ld>)" != "Test[446 chars]its=3)\n    email_field = EmailField(max_lengt[553 chars]ld>)"
E   Diff is 1206 characters long. Set self.maxDiff to None to see it.

@tomchristie:

The failure there should be easy enough to resolve - something on ModelSerializer is being mapped slightly diff between versions. Would be good to fully see the diff between the actual repr() and the expected repr() — #3427 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions