Source: python-djangorestframework-flex-fields
Version: 1.0.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:110: Building wheel for python3.11 with "build" 
> module
> I: pybuild base:291: python3.11 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_djangorestframework-flex-fields 
> * Building wheel...
> running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib
> creating build/lib/rest_flex_fields
> copying rest_flex_fields/views.py -> build/lib/rest_flex_fields
> copying rest_flex_fields/utils.py -> build/lib/rest_flex_fields
> copying rest_flex_fields/filter_backends.py -> build/lib/rest_flex_fields
> copying rest_flex_fields/__init__.py -> build/lib/rest_flex_fields
> copying rest_flex_fields/serializers.py -> build/lib/rest_flex_fields
> installing to build/bdist.linux-x86_64/wheel
> running install
> running install_lib
> creating build/bdist.linux-x86_64
> creating build/bdist.linux-x86_64/wheel
> creating build/bdist.linux-x86_64/wheel/rest_flex_fields
> copying build/lib/rest_flex_fields/views.py -> 
> build/bdist.linux-x86_64/wheel/rest_flex_fields
> copying build/lib/rest_flex_fields/utils.py -> 
> build/bdist.linux-x86_64/wheel/rest_flex_fields
> copying build/lib/rest_flex_fields/filter_backends.py -> 
> build/bdist.linux-x86_64/wheel/rest_flex_fields
> copying build/lib/rest_flex_fields/__init__.py -> 
> build/bdist.linux-x86_64/wheel/rest_flex_fields
> copying build/lib/rest_flex_fields/serializers.py -> 
> build/bdist.linux-x86_64/wheel/rest_flex_fields
> running install_egg_info
> running egg_info
> creating drf_flex_fields.egg-info
> writing drf_flex_fields.egg-info/PKG-INFO
> writing dependency_links to drf_flex_fields.egg-info/dependency_links.txt
> writing top-level names to drf_flex_fields.egg-info/top_level.txt
> writing manifest file 'drf_flex_fields.egg-info/SOURCES.txt'
> reading manifest file 'drf_flex_fields.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'drf_flex_fields.egg-info/SOURCES.txt'
> Copying drf_flex_fields.egg-info to 
> build/bdist.linux-x86_64/wheel/drf_flex_fields-1.0.2.egg-info
> running install_scripts
> creating build/bdist.linux-x86_64/wheel/drf_flex_fields-1.0.2.dist-info/WHEEL
> creating 
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_djangorestframework-flex-fields/.tmp-fsmen0jt/drf_flex_fields-1.0.2-py3-none-any.whl'
>  and adding 'build/bdist.linux-x86_64/wheel' to it
> adding 'rest_flex_fields/__init__.py'
> adding 'rest_flex_fields/filter_backends.py'
> adding 'rest_flex_fields/serializers.py'
> adding 'rest_flex_fields/utils.py'
> adding 'rest_flex_fields/views.py'
> adding 'drf_flex_fields-1.0.2.dist-info/LICENSE'
> adding 'drf_flex_fields-1.0.2.dist-info/METADATA'
> adding 'drf_flex_fields-1.0.2.dist-info/WHEEL'
> adding 'drf_flex_fields-1.0.2.dist-info/top_level.txt'
> adding 'drf_flex_fields-1.0.2.dist-info/RECORD'
> removing build/bdist.linux-x86_64/wheel
> Successfully built drf_flex_fields-1.0.2-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with 
> "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:291: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_djangorestframework-flex-fields/build;
>  python3.11 -m pytest --ds=tests.settings
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> django: settings: tests.settings (from option)
> rootdir: /<<PKGBUILDDIR>>
> plugins: django-4.5.2
> collected 64 items
> 
> tests/test_serializer.py ...........                                     [ 
> 17%]
> tests/test_utils.py .........                                            [ 
> 31%]
> tests/test_views.py FFFFFFFFFFFFFFFFFF                                   [ 
> 59%]
> tests/test_flex_fields_model_serializer.py ..........................    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________ PetViewTests.test_create_and_return_expanded_field 
> ______________
> 
> self = <tests.test_views.PetViewTests 
> testMethod=test_create_and_return_expanded_field>
> 
>     def test_create_and_return_expanded_field(self):
> >       url = reverse("pet-list")
> 
> tests/test_views.py:107: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> ________________ PetViewTests.test_expand_drf_model_serializer 
> _________________
> 
> self = <tests.test_views.PetViewTests 
> testMethod=test_expand_drf_model_serializer>
> 
>     def test_expand_drf_model_serializer(self):
>         petco = PetStore.objects.create(name="PetCo")
>         self.pet.sold_from = petco
>         self.pet.save()
>     
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:156: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> ________________ PetViewTests.test_expand_drf_serializer_field 
> _________________
> 
> self = <tests.test_views.PetViewTests 
> testMethod=test_expand_drf_serializer_field>
> 
>     def test_expand_drf_serializer_field(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:136: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _______________________ PetViewTests.test_list_expanded 
> ________________________
> 
> self = <tests.test_views.PetViewTests testMethod=test_list_expanded>
> 
>     def test_list_expanded(self):
> >       url = reverse("pet-list")
> 
> tests/test_views.py:90: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _ 
> PetViewTests.test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level 
> _
> 
> self = <tests.test_views.PetViewTests 
> testMethod=test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level>
> 
>     def 
> test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:71: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _____________________ PetViewTests.test_retrieve_expanded 
> ______________________
> 
> self = <tests.test_views.PetViewTests testMethod=test_retrieve_expanded>
> 
>     def test_retrieve_expanded(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:33: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> ______________________ PetViewTests.test_retrieve_sparse 
> _______________________
> 
> self = <tests.test_views.PetViewTests testMethod=test_retrieve_sparse>
> 
>     def test_retrieve_sparse(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _____________ PetViewTests.test_retrieve_sparse_and_deep_expanded 
> ______________
> 
> self = <tests.test_views.PetViewTests 
> testMethod=test_retrieve_sparse_and_deep_expanded>
> 
>     def test_retrieve_sparse_and_deep_expanded(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:55: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _ 
> PetViewWithSelectFieldsFilterBackendTests.test_create_and_return_expanded_field
>  _
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_create_and_return_expanded_field>
> 
>     def test_create_and_return_expanded_field(self):
> >       url = reverse("pet-list")
> 
> tests/test_views.py:107: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> __ PetViewWithSelectFieldsFilterBackendTests.test_expand_drf_model_serializer 
> __
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_expand_drf_model_serializer>
> 
>     def test_expand_drf_model_serializer(self):
>         petco = PetStore.objects.create(name="PetCo")
>         self.pet.sold_from = petco
>         self.pet.save()
>     
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:156: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> __ PetViewWithSelectFieldsFilterBackendTests.test_expand_drf_serializer_field 
> __
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_expand_drf_serializer_field>
> 
>     def test_expand_drf_serializer_field(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:136: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _________ PetViewWithSelectFieldsFilterBackendTests.test_list_expanded 
> _________
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_list_expanded>
> 
>     def test_list_expanded(self):
> >       url = reverse("pet-list")
> 
> tests/test_views.py:90: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> ______ PetViewWithSelectFieldsFilterBackendTests.test_query_optimization 
> _______
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_query_optimization>
> 
>     def test_query_optimization(self):
> >       url = reverse("pet-list")
> 
> tests/test_views.py:176: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _ 
> PetViewWithSelectFieldsFilterBackendTests.test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level
>  _
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level>
> 
>     def 
> test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:71: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _______ PetViewWithSelectFieldsFilterBackendTests.test_retrieve_expanded 
> _______
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_retrieve_expanded>
> 
>     def test_retrieve_expanded(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:33: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> ________ PetViewWithSelectFieldsFilterBackendTests.test_retrieve_sparse 
> ________
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_retrieve_sparse>
> 
>     def test_retrieve_sparse(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:49: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _ 
> PetViewWithSelectFieldsFilterBackendTests.test_retrieve_sparse_and_deep_expanded
>  _
> 
> self = <tests.test_views.PetViewWithSelectFieldsFilterBackendTests 
> testMethod=test_retrieve_sparse_and_deep_expanded>
> 
>     def test_retrieve_sparse_and_deep_expanded(self):
> >       url = reverse("pet-detail", args=[self.pet.id])
> 
> tests/test_views.py:55: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> _ 
> TaggedItemViewWithSelectFieldsFilterBackendTests.test_query_optimization_includes_generic_foreign_keys_in_prefetch_related
>  _
> 
> self = <tests.test_views.TaggedItemViewWithSelectFieldsFilterBackendTests 
> testMethod=test_query_optimization_includes_generic_foreign_keys_in_prefetch_related>
> 
>     def 
> test_query_optimization_includes_generic_foreign_keys_in_prefetch_related(self):
>         self.company = Company.objects.create(name="McDonalds")
>     
>         self.person = Person.objects.create(
>             name="Fred", hobbies="sailing", employer=self.company
>         )
>     
>         self.pet1 = Pet.objects.create(
>             name="Garfield", toys="paper ball, string", species="cat",
>             owner=self.person
>         )
>         self.pet2 = Pet.objects.create(
>             name="Garfield", toys="paper ball, string", species="cat",
>             owner=self.person
>         )
>     
>         self.tagged_item1 = TaggedItem.objects.create(
>             content_type=ContentType.objects.get_for_model(Pet),
>             object_id=self.pet1.id
>         )
>         self.tagged_item2 = TaggedItem.objects.create(
>             content_type=ContentType.objects.get_for_model(Pet),
>             object_id=self.pet2.id
>         )
>         self.tagged_item3 = TaggedItem.objects.create(
>             content_type=ContentType.objects.get_for_model(Person),
>             object_id=self.person.id
>         )
>         self.tagged_item4 = TaggedItem.objects.create(
>             content_type=ContentType.objects.get_for_model(Company),
>             object_id=self.company.id
>         )
>     
> >       url = reverse("tagged-item-list")
> 
> tests/test_views.py:240: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/django/urls/base.py:88: in reverse
>     return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:746: in 
> _reverse_with_prefix
>     self._populate()
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:543: in _populate
>     for url_pattern in reversed(self.url_patterns):
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:715: in url_patterns
>     patterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)
> /usr/lib/python3/dist-packages/django/utils/functional.py:57: in __get__
>     res = instance.__dict__[self.name] = self.func(instance)
> /usr/lib/python3/dist-packages/django/urls/resolvers.py:708: in urlconf_module
>     return import_module(self.urlconf_name)
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1204: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1176: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:690: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:940: in exec_module
>     ???
> <frozen importlib._bootstrap>:241: in _call_with_frames_removed
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   from django.conf.urls import url, include
> E   ImportError: cannot import name 'url' from 'django.conf.urls' 
> (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py)
> 
> tests/urls.py:1: ImportError
> =============================== warnings summary 
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:267: 
> RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with 
> Django 5.0, localized formatting of data will always be enabled. For example 
> Django will display numbers and dates using the format of the current locale.
>     warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED 
> tests/test_views.py::PetViewTests::test_create_and_return_expanded_field
> FAILED tests/test_views.py::PetViewTests::test_expand_drf_model_serializer - 
> ...
> FAILED tests/test_views.py::PetViewTests::test_expand_drf_serializer_field - 
> ...
> FAILED tests/test_views.py::PetViewTests::test_list_expanded - ImportError: 
> c...
> FAILED 
> tests/test_views.py::PetViewTests::test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level
> FAILED tests/test_views.py::PetViewTests::test_retrieve_expanded - 
> ImportErro...
> FAILED tests/test_views.py::PetViewTests::test_retrieve_sparse - 
> ImportError:...
> FAILED 
> tests/test_views.py::PetViewTests::test_retrieve_sparse_and_deep_expanded
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_create_and_return_expanded_field
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_expand_drf_model_serializer
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_expand_drf_serializer_field
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_list_expanded
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_query_optimization
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_retrieve_all_fields_at_root_and_sparse_fields_at_next_level
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_retrieve_expanded
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_retrieve_sparse
> FAILED 
> tests/test_views.py::PetViewWithSelectFieldsFilterBackendTests::test_retrieve_sparse_and_deep_expanded
> FAILED 
> tests/test_views.py::TaggedItemViewWithSelectFieldsFilterBackendTests::test_query_optimization_includes_generic_foreign_keys_in_prefetch_related
> =================== 18 failed, 46 passed, 1 warning in 1.48s 
> ===================
> E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_djangorestframework-flex-fields/build;
>  python3.11 -m pytest --ds=tests.settings
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/python-djangorestframework-flex-fields_1.0.2-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to