Skip to content

Failing test with Python 3.13 #210

Description

@fabaff
============================= 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 ===============================
[...]
``

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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