Your message dated Sun, 01 Oct 2023 13:22:27 +0000
with message-id <e1qmwox-00gwrw...@fasolo.debian.org>
and subject line Bug#1052782: fixed in python-djangorestframework-flex-fields 
1.0.2-2
has caused the Debian Bug report #1052782,
regarding python-djangorestframework-flex-fields: FTBFS: dh_auto_test: error: 
pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1052782: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052782
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Source: python-djangorestframework-flex-fields
Source-Version: 1.0.2-2
Done: Michael Fladischer <fl...@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-djangorestframework-flex-fields, which is due to be installed in the 
Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1052...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Fladischer <fl...@debian.org> (supplier of updated 
python-djangorestframework-flex-fields package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 01 Oct 2023 12:22:13 +0000
Source: python-djangorestframework-flex-fields
Architecture: source
Version: 1.0.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Michael Fladischer <fl...@debian.org>
Closes: 1052782
Changes:
 python-djangorestframework-flex-fields (1.0.2-2) unstable; urgency=medium
 .
   * Add patch to fix django.urls imports for Django 4 (Closes: #1052782).
Checksums-Sha1:
 8c96254b3f1252eb7ac9cd63d5bc6e1ce80ac7c6 2137 
python-djangorestframework-flex-fields_1.0.2-2.dsc
 761bd28e04168c3adcfce07e14bca7e67be29eb4 3168 
python-djangorestframework-flex-fields_1.0.2-2.debian.tar.xz
 ce3119b9bf97d965dae11f158df74c47351b1002 7267 
python-djangorestframework-flex-fields_1.0.2-2_arm64.buildinfo
Checksums-Sha256:
 ec03123bb0575b5191a7307e8ea79c6f4934499eaeb44a99d51184268c3e71de 2137 
python-djangorestframework-flex-fields_1.0.2-2.dsc
 e1f09daaf0bc2a45873c26aac8c1779b49424e5d18d3c40497f8a9d69731e7cd 3168 
python-djangorestframework-flex-fields_1.0.2-2.debian.tar.xz
 879d1680fc64854383a551967f32efaae869ed65d8ef52c2f8eae9bf66049c52 7267 
python-djangorestframework-flex-fields_1.0.2-2_arm64.buildinfo
Files:
 899900754779bd85af35c3b3eb9f391e 2137 python optional 
python-djangorestframework-flex-fields_1.0.2-2.dsc
 c606e0470b4c84d5ec529a0843be9dde 3168 python optional 
python-djangorestframework-flex-fields_1.0.2-2.debian.tar.xz
 46aead2625041a3224fb0fa325704355 7267 python optional 
python-djangorestframework-flex-fields_1.0.2-2_arm64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEqVSlRXW87UkkCnJc/9PIi5l90WoFAmUZZWMACgkQ/9PIi5l9
0Wo/zAf9G6t6FnEyTqw5aG1yrD0yatWFf3AngBG5qj+5oiG0Hy07tFzOofiiINxQ
NMwmhJmlJKXX5T9P5gDWGlSitkVwz1sLjkY7YBX61I0zWJVjQZBp68+38JdeEvbR
AMdjbo26fWTDBItt2MnYDivdV1IzM4rUI9BcitnZDesjUH6RY5ljKRxhMkDKWZ4f
bXYpY7BzG3gJQeydbZzUa+XRl16USNFnPVArfxqMK1nUUD51HF+cn99P4PhGVFST
RVhGCe84WXOSIoYA8CAxnd7Z4hJqRcuys0g+t4Goz95t2hOXoZBGM2lqBj1Uw4P2
uADZo3UiWE05/XEWEujaEdj8bD3MxQ==
=cuGK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to