Skip to content

MultiTable Inherited Model Tests fail with Django 1.11a1 #4574

@cdman

Description

@cdman

running tox on master I get (I don't have Python 3.4 installed):

ERROR:   py27-djangomaster: commands failed
...
ERROR:   py35-djangomaster: commands failed

For me Django master is at 74a575e: django/django@74a575e

SHA256 for the https://github.com/django/django/archive/master.tar.gz I'm seeing: `bc2874ca4e3bce55f528d4cd4fc9b36a5164313675ad534b8b900502ffe9f79d``

The failing tests are:

_________________________________ IntegrationTestFiltering.test_filter_with_queryset _________________________________
tests/test_filters.py:179: in test_filter_with_queryset
    self.assertEqual(response.data, expected_data)
E   AssertionError: [OrderedDict([('id', 3), ('text', 'ccc'), [72 chars]3)])] != [{'decimal': '2.25', 'date': '2012-10-04',[20 chars]: 3}]
_____________________________ IntegrationTestFiltering.test_get_filtered_class_root_view _____________________________
tests/test_filters.py:204: in test_get_filtered_class_root_view
    self.assertEqual(response.data, self.data)
E   AssertionError: [OrderedDict([('id', 1), ('text', 'aaa'), [1145 chars]0)])] != [{'decimal': '0.25', 'date': '2012-10-08',[624 chars] 10}]
____________________________ IntegrationTestFiltering.test_get_filtered_fields_root_view _____________________________
tests/test_filters.py:148: in test_get_filtered_fields_root_view
    self.assertEqual(response.data, self.data)
E   AssertionError: [OrderedDict([('id', 1), ('text', 'aaa'), [1145 chars]0)])] != [{'decimal': '0.25', 'date': '2012-10-08',[624 chars] 10}]
____________________________ IntegrationTestDetailFiltering.test_get_filtered_detail_view ____________________________
tests/test_filters.py:298: in test_get_filtered_detail_view
    self.assertEqual(response.data, data)
E   AssertionError: {'dec[26 chars]12-10-08', 'basefilterableitem_ptr': 1, 'text': 'aaa', 'id': 1} != {'dec[26 chars]12-10-08', 'text': 'aaa', 'id': 1}
_______________________ InheritedModelSerializationTests.test_data_is_valid_without_parent_ptr _______________________
tests/test_multitable_inheritance.py:71: in test_data_is_valid_without_parent_ptr
    self.assertEqual(serializer.is_valid(), True)
E   AssertionError: False != True
________________ InheritedModelSerializationTests.test_multitable_inherited_model_fields_as_expected _________________
tests/test_multitable_inheritance.py:48: in test_multitable_inherited_model_fields_as_expected
    set(['name1', 'name2', 'id']))
E   AssertionError: Items in the first set but not the second:
E   'parentmodel_ptr'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions