Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test with Python 3.13 #210

Open
fabaff opened this issue Jan 7, 2025 · 0 comments
Open

Failing test with Python 3.13 #210

fabaff opened this issue Jan 7, 2025 · 0 comments

Comments

@fabaff
Copy link

fabaff commented Jan 7, 2025

============================= 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 ===============================
[...]
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant