drf-extra-fields
drf-extra-fields copied to clipboard
Failing test with Python 3.13
============================= test session starts ==============================
platform linux -- Python 3.13.1, pytest-8.3.3, pluggy-1.5.0
django: version: 4.2.17, settings: drf_extra_fields.runtests.settings (from ini)
rootdir: /build/source
configfile: pytest.ini
testpaths: tests
plugins: django-4.9.0
collected 56 items
tests/test_fields.py .......................... [ 46%]
tests/test_model_serializer.py s. [ 50%]
tests/test_fields.py ..............ssss...... [ 92%]
tests/test_relations.py F... [100%]
=================================== FAILURES ===================================
_____ TestPresentablePrimaryKeyRelatedField.test_read_source_with_context ______
self = <tests.test_relations.TestPresentablePrimaryKeyRelatedField testMethod=test_read_source_with_context>
def test_read_source_with_context(self):
representation = SerializerWithPresentable(self.instance)
> expected_representation = [PresentationSerializer(x).data for x in MockObject().foo_property]
E TypeError: 'MockIterator' object is not iterable
tests/test_relations.py:68: TypeError
=============================== warnings summary ===============================
[...]
``