Build: world-goblins
Name: python-django-rest-framework-3.15.2-4
maintainer: LemonPie
email: lemonpie at artixlinux.org
[1]https://orion.artixlinux.org/job/packages/job/python-django-rest-fra
mework/job/master/15/
References
1. https://orion.artixlinux.org/job/packages/job/python-django-rest-framework/job/master/15/
-------------- next part --------------
Started by user artist
Looking up repository packages/python-django-rest-framework
Querying the current revision of branch master...
Current revision of branch master is 0bcf504546b7ac9f03b6afb9453be0ce37b98b15
Obtained .artixlinux/Jenkinsfile from 0bcf504546b7ac9f03b6afb9453be0ce37b98b15
Loading library artix-ci at orion
Attempting to resolve orion from remote references...
> git --version # timeout=10
> git --version # 'git version 2.47.0'
using GIT_ASKPASS to set credentials jenkins gitea token
> git ls-remote -- https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Found match: refs/heads/orion revision 880bd3745db54fd7d2bc517b1ce67190bee429ae
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential jenkins-gotea-token
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/hon-django-rest-framework_master at libs/d1b6e538991d6cf27c1f72e8cf4d6e290b22a9c93094b0e97e3a05b8d58db898/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitea.artixlinux.org/artix/pipeline-libs.git
> git --version # timeout=10
> git --version # 'git version 2.47.0'
using GIT_ASKPASS to set credentials jenkins gitea token
> git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/artix/pipeline-libs.git +refs/heads/orion:refs/remotes/origin/orion # timeout=10
Checking out Revision 880bd3745db54fd7d2bc517b1ce67190bee429ae (orion)
> git config core.sparsecheckout # timeout=10
> git checkout -f 880bd3745db54fd7d2bc517b1ce67190bee429ae # timeout=10
Commit message: "Merge pull request 'fix check args' (#69) from master into orion"
[Gitea] Notifying branch build status: PENDING Build started...
[Gitea] Notified
[Pipeline] Start of Pipeline
[Pipeline] catchError
[Pipeline] {
[Pipeline] libraryResource
[Pipeline] readYaml
[Pipeline] }
[Pipeline] // catchError
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ‘Jenkins’
Running on Jenkins in /var/lib/jenkins/workspace/hon-django-rest-framework_master
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[2024-11-23T00:17:59.892Z]
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
[2024-11-23T00:17:59.944Z] The recommended git tool is: NONE
[2024-11-23T00:17:59.945Z] using credential jenkins-gotea-token
[2024-11-23T00:18:00.085Z] > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/hon-django-rest-framework_master/.git # timeout=10
[2024-11-23T00:18:00.090Z] Fetching changes from the remote Git repository
[2024-11-23T00:18:00.092Z] > git config remote.origin.url https://gitea.artixlinux.org/packages/python-django-rest-framework.git # timeout=10
[2024-11-23T00:18:00.098Z] Cleaning workspace
[2024-11-23T00:18:00.098Z] > git rev-parse --verify HEAD # timeout=10
[2024-11-23T00:18:00.104Z] Resetting working tree
[2024-11-23T00:18:00.104Z] > git reset --hard # timeout=10
[2024-11-23T00:18:00.111Z] > git clean -fdx # timeout=10
[2024-11-23T00:18:00.118Z] Fetching without tags
[2024-11-23T00:18:00.118Z] Fetching upstream changes from https://gitea.artixlinux.org/packages/python-django-rest-framework.git
[2024-11-23T00:18:00.118Z] > git --version # timeout=10
[2024-11-23T00:18:00.124Z] > git --version # 'git version 2.47.0'
[2024-11-23T00:18:00.124Z] using GIT_ASKPASS to set credentials jenkins gitea token
[2024-11-23T00:18:00.130Z] > git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/packages/python-django-rest-framework.git +refs/heads/master:refs/remotes/origin/master # timeout=10
[2024-11-23T00:18:00.268Z] Checking out Revision 0bcf504546b7ac9f03b6afb9453be0ce37b98b15 (master)
[2024-11-23T00:18:00.268Z] > git config core.sparsecheckout # timeout=10
[2024-11-23T00:18:00.274Z] > git checkout -f 0bcf504546b7ac9f03b6afb9453be0ce37b98b15 # timeout=10
[2024-11-23T00:18:00.284Z] Commit message: "[world-goblins] 'python-django-rest-framework-3.15.2-4' add"
[2024-11-23T00:18:00.284Z] > git rev-list --no-walk 0bcf504546b7ac9f03b6afb9453be0ce37b98b15 # timeout=10
[2024-11-23T00:18:00.298Z] [Gitea] Notifying branch build status: PENDING Build started...
[2024-11-23T00:18:00.450Z] [Gitea] Notified
[Pipeline] readYaml
[Pipeline] sh
[2024-11-23T00:18:00.717Z] + git show -s --format=%an 0bcf504546b7ac9f03b6afb9453be0ce37b98b15
[Pipeline] sh
[2024-11-23T00:18:00.975Z] + git show -s --format=%ae 0bcf504546b7ac9f03b6afb9453be0ce37b98b15
[Pipeline] echo
[2024-11-23T00:18:00.999Z] addRepo=world-goblins
[Pipeline] echo
[2024-11-23T00:18:01.004Z] removeRepo=null
[Pipeline] echo
[2024-11-23T00:18:01.009Z] triggersBuild=true
[Pipeline] echo
[2024-11-23T00:18:01.013Z] triggersRebuild=false
[Pipeline] echo
[2024-11-23T00:18:01.018Z] triggersRepoAdd=true
[Pipeline] echo
[2024-11-23T00:18:01.023Z] triggersRepoRemove=false
[Pipeline] echo
[2024-11-23T00:18:01.027Z] triggersNoCheck=false
[Pipeline] echo
[2024-11-23T00:18:01.033Z] name=LemonPie
[Pipeline] echo
[2024-11-23T00:18:01.038Z] email=lemonpie at artixlinux.org
[Pipeline] echo
[2024-11-23T00:18:01.042Z] credentialsId=BUILDBOT_GPGP
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] catchError
[Pipeline] {
[Pipeline] sh
[2024-11-23T00:18:01.359Z] + buildpkg -n -a x86_64 -d world-goblins -e 'LemonPie <lemonpie at artixlinux.org>'
[2024-11-23T00:18:05.481Z] :: Synchronizing package databases...
[2024-11-23T00:18:05.481Z] system-goblins downloading...
[2024-11-23T00:18:05.481Z] system-gremlins downloading...
[2024-11-23T00:18:05.481Z] system downloading...
[2024-11-23T00:18:05.481Z] world-goblins downloading...
[2024-11-23T00:18:05.481Z] world-gremlins downloading...
[2024-11-23T00:18:05.481Z] world downloading...
[2024-11-23T00:18:05.481Z] :: Starting full system upgrade...
[2024-11-23T00:18:05.481Z] there is nothing to do
[2024-11-23T00:18:07.963Z] ==> Building in chroot for [world-goblins] (x86_64)...
[2024-11-23T00:18:08.514Z] ==> Synchronizing chroot copy [/build/buildpkg/world-goblins-x86_64/root] -> [jenkins]...done
[2024-11-23T00:18:09.425Z] ==> Making package: python-django-rest-framework 3.15.2-4 (Sat Nov 23 01:18:09 2024)
[2024-11-23T00:18:09.425Z] ==> Retrieving sources...
[2024-11-23T00:18:09.425Z] -> Found django-rest-framework-3.15.2.tar.gz
[2024-11-23T00:18:09.425Z] -> Found django-rest-framework-3.15.2-accept-integers.patch
[2024-11-23T00:18:09.425Z] -> Found django-rest-framework-3.15.2-django5.1-support.patch
[2024-11-23T00:18:09.425Z] ==> Validating source files with sha512sums...
[2024-11-23T00:18:09.425Z] django-rest-framework-3.15.2.tar.gz ... Passed
[2024-11-23T00:18:09.425Z] django-rest-framework-3.15.2-accept-integers.patch ... Passed
[2024-11-23T00:18:09.425Z] django-rest-framework-3.15.2-django5.1-support.patch ... Passed
[2024-11-23T00:18:09.425Z] ==> Validating source files with b2sums...
[2024-11-23T00:18:09.675Z] django-rest-framework-3.15.2.tar.gz ... Passed
[2024-11-23T00:18:09.675Z] django-rest-framework-3.15.2-accept-integers.patch ... Passed
[2024-11-23T00:18:09.675Z] django-rest-framework-3.15.2-django5.1-support.patch ... Passed
[2024-11-23T00:18:14.869Z] ==> Making package: python-django-rest-framework 3.15.2-4 (Sat Nov 23 00:18:14 2024)
[2024-11-23T00:18:14.869Z] ==> Checking runtime dependencies...
[2024-11-23T00:18:14.869Z] ==> Installing missing dependencies...
[2024-11-23T00:18:15.119Z] resolving dependencies...
[2024-11-23T00:18:15.119Z] looking for conflicting packages...
[2024-11-23T00:18:15.119Z]
[2024-11-23T00:18:15.119Z] Package (4) New Version Net Change
[2024-11-23T00:18:15.119Z]
[2024-11-23T00:18:15.119Z] world-goblins/python-asgiref 3.8.1-2 0.21 MiB
[2024-11-23T00:18:15.119Z] world-goblins/python-sqlparse 0.5.1-2 0.51 MiB
[2024-11-23T00:18:15.119Z] world-goblins/python-django 5.1.3-2 35.08 MiB
[2024-11-23T00:18:15.119Z] world-goblins/python-pytz 2024.2-2 0.15 MiB
[2024-11-23T00:18:15.119Z]
[2024-11-23T00:18:15.119Z] Total Installed Size: 35.95 MiB
[2024-11-23T00:18:15.119Z]
[2024-11-23T00:18:15.119Z] :: Proceed with installation? [Y/n]
[2024-11-23T00:18:15.119Z] checking keyring...
[2024-11-23T00:18:15.119Z] checking package integrity...
[2024-11-23T00:18:15.119Z] loading package files...
[2024-11-23T00:18:15.119Z] checking for file conflicts...
[2024-11-23T00:18:15.119Z] :: Processing package changes...
[2024-11-23T00:18:15.119Z] installing python-pytz...
[2024-11-23T00:18:15.119Z] installing python-sqlparse...
[2024-11-23T00:18:15.119Z] installing python-asgiref...
[2024-11-23T00:18:15.119Z] installing python-django...
[2024-11-23T00:18:15.670Z] Optional dependencies for python-django
[2024-11-23T00:18:15.670Z] python-psycopg2: for PostgreSQL backend
[2024-11-23T00:18:15.670Z] python-argon2-cffi: for Argon2 password hashing support
[2024-11-23T00:18:15.920Z] ==> Checking buildtime dependencies...
[2024-11-23T00:18:15.920Z] ==> Installing missing dependencies...
[2024-11-23T00:18:16.170Z] resolving dependencies...
[2024-11-23T00:18:16.170Z] looking for conflicting packages...
[2024-11-23T00:18:16.170Z]
[2024-11-23T00:18:16.170Z] Package (17) New Version Net Change
[2024-11-23T00:18:16.170Z]
[2024-11-23T00:18:16.170Z] world-goblins/python-autocommand 2.2.2-7 0.08 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-iniconfig 2.0.0-6 0.04 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-jaraco.collections 5.0.1-2 0.10 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-jaraco.context 5.3.0-2 0.04 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-jaraco.functools 4.0.2-2 0.07 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-jaraco.text 4.0.0-2 0.08 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-more-itertools 10.3.0-2 0.62 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-packaging 24.2-3 0.66 MiB
[2024-11-23T00:18:16.170Z] world-goblins/python-platformdirs 4.3.6-2 0.24 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-pluggy 1.5.0-3 0.20 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-pyproject-hooks 1.2.0-3 0.10 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-build 1.2.2-3 0.20 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-installer 0.7.0-10 0.17 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-pytest 1:8.3.3-2.1 3.91 MiB
[2024-11-23T00:18:16.171Z] world/python-pytest-django 4.8.0-3 0.21 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-setuptools 1:75.2.0-4 8.05 MiB
[2024-11-23T00:18:16.171Z] world-goblins/python-wheel 0.45.0-3 0.28 MiB
[2024-11-23T00:18:16.171Z]
[2024-11-23T00:18:16.171Z] Total Installed Size: 15.06 MiB
[2024-11-23T00:18:16.171Z]
[2024-11-23T00:18:16.171Z] :: Proceed with installation? [Y/n]
[2024-11-23T00:18:16.171Z] checking keyring...
[2024-11-23T00:18:16.171Z] checking package integrity...
[2024-11-23T00:18:16.421Z] loading package files...
[2024-11-23T00:18:16.421Z] checking for file conflicts...
[2024-11-23T00:18:16.421Z] :: Processing package changes...
[2024-11-23T00:18:16.421Z] installing python-packaging...
[2024-11-23T00:18:16.421Z] installing python-pyproject-hooks...
[2024-11-23T00:18:16.421Z] installing python-build...
[2024-11-23T00:18:16.421Z] Optional dependencies for python-build
[2024-11-23T00:18:16.421Z] python-pip: to use as the Python package installer (default)
[2024-11-23T00:18:16.421Z] python-uv: to use as the Python package installer
[2024-11-23T00:18:16.421Z] python-virtualenv: to use virtualenv for build isolation
[2024-11-23T00:18:16.421Z] installing python-installer...
[2024-11-23T00:18:16.671Z] installing python-more-itertools...
[2024-11-23T00:18:16.671Z] installing python-jaraco.functools...
[2024-11-23T00:18:16.671Z] installing python-jaraco.context...
[2024-11-23T00:18:16.671Z] installing python-autocommand...
[2024-11-23T00:18:16.671Z] installing python-jaraco.text...
[2024-11-23T00:18:16.671Z] Optional dependencies for python-jaraco.text
[2024-11-23T00:18:16.671Z] python-inflect: for show-newlines script
[2024-11-23T00:18:16.671Z] installing python-jaraco.collections...
[2024-11-23T00:18:16.671Z] installing python-platformdirs...
[2024-11-23T00:18:16.671Z] installing python-wheel...
[2024-11-23T00:18:16.671Z] Optional dependencies for python-wheel
[2024-11-23T00:18:16.671Z] python-keyring: for wheel.signatures
[2024-11-23T00:18:16.671Z] python-xdg: for wheel.signatures
[2024-11-23T00:18:16.671Z] python-setuptools: for legacy bdist_wheel subcommand [pending]
[2024-11-23T00:18:16.671Z] installing python-setuptools...
[2024-11-23T00:18:16.671Z] installing python-iniconfig...
[2024-11-23T00:18:16.671Z] installing python-pluggy...
[2024-11-23T00:18:16.671Z] installing python-pytest...
[2024-11-23T00:18:16.671Z] installing python-pytest-django...
[2024-11-23T00:18:16.671Z] ==> Retrieving sources...
[2024-11-23T00:18:16.671Z] -> Found django-rest-framework-3.15.2.tar.gz
[2024-11-23T00:18:16.921Z] -> Found django-rest-framework-3.15.2-accept-integers.patch
[2024-11-23T00:18:16.921Z] -> Found django-rest-framework-3.15.2-django5.1-support.patch
[2024-11-23T00:18:16.921Z] ==> WARNING: Skipping all source file integrity checks.
[2024-11-23T00:18:16.921Z] ==> Extracting sources...
[2024-11-23T00:18:16.921Z] -> Extracting django-rest-framework-3.15.2.tar.gz with bsdtar
[2024-11-23T00:18:16.921Z] ==> Starting prepare()...
[2024-11-23T00:18:17.172Z] patching file docs/api-guide/fields.md
[2024-11-23T00:18:17.172Z] patching file rest_framework/fields.py
[2024-11-23T00:18:17.172Z] patching file tests/test_fields.py
[2024-11-23T00:18:17.172Z] patching file README.md
[2024-11-23T00:18:17.172Z] Hunk #1 succeeded at 54 (offset -1 lines).
[2024-11-23T00:18:17.172Z] patching file docs/api-guide/authentication.md
[2024-11-23T00:18:17.172Z] patching file docs/index.md
[2024-11-23T00:18:17.172Z] Hunk #1 succeeded at 86 (offset -1 lines).
[2024-11-23T00:18:17.172Z] patching file rest_framework/views.py
[2024-11-23T00:18:17.172Z] patching file rest_framework/viewsets.py
[2024-11-23T00:18:17.172Z] patching file setup.py
[2024-11-23T00:18:17.172Z] Hunk #1 succeeded at 92 (offset 1 line).
[2024-11-23T00:18:17.172Z] patching file tests/test_middleware.py
[2024-11-23T00:18:17.172Z] patching file tests/test_views.py
[2024-11-23T00:18:17.172Z] patching file tests/test_viewsets.py
[2024-11-23T00:18:17.172Z] patching file tox.ini
[2024-11-23T00:18:17.172Z] ==> Starting build()...
[2024-11-23T00:18:17.172Z] * Getting build dependencies for wheel...
[2024-11-23T00:18:17.422Z] running egg_info
[2024-11-23T00:18:17.422Z] creating djangorestframework.egg-info
[2024-11-23T00:18:17.422Z] writing djangorestframework.egg-info/PKG-INFO
[2024-11-23T00:18:17.422Z] writing dependency_links to djangorestframework.egg-info/dependency_links.txt
[2024-11-23T00:18:17.422Z] writing requirements to djangorestframework.egg-info/requires.txt
[2024-11-23T00:18:17.422Z] writing top-level names to djangorestframework.egg-info/top_level.txt
[2024-11-23T00:18:17.422Z] writing manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T00:18:17.422Z] reading manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T00:18:17.422Z] reading manifest template 'MANIFEST.in'
[2024-11-23T00:18:17.422Z] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[2024-11-23T00:18:17.422Z] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[2024-11-23T00:18:17.422Z] adding license file 'LICENSE.md'
[2024-11-23T00:18:17.422Z] writing manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T00:18:17.672Z] * Building wheel...
[2024-11-23T00:18:17.672Z] running bdist_wheel
[2024-11-23T00:18:17.672Z] running build
[2024-11-23T00:18:17.672Z] running build_py
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/permissions.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/__init__.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/routers.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/urls.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/apps.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/negotiation.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/parsers.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/relations.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/metadata.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/views.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/versioning.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/serializers.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/authentication.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/status.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/filters.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/fields.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/test.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/documentation.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/exceptions.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/compat.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/renderers.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/throttling.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/pagination.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/settings.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/response.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/validators.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/decorators.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/viewsets.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/request.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/mixins.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/checks.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/urlpatterns.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/reverse.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] copying rest_framework/generics.py -> build/lib/rest_framework
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/__init__.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/encoders.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/urls.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/formatting.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/field_mapping.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/breadcrumbs.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/json.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/timezone.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/mediatypes.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/serializer_helpers.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/model_meta.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/html.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/humanize_datetime.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] copying rest_framework/utils/representation.py -> build/lib/rest_framework/utils
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/__init__.py -> build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/models.py -> build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/apps.py -> build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/views.py -> build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/serializers.py -> build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/admin.py -> build/lib/rest_framework/authtoken
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/management
[2024-11-23T00:18:17.923Z] copying rest_framework/management/__init__.py -> build/lib/rest_framework/management
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/templatetags
[2024-11-23T00:18:17.923Z] copying rest_framework/templatetags/__init__.py -> build/lib/rest_framework/templatetags
[2024-11-23T00:18:17.923Z] copying rest_framework/templatetags/rest_framework.py -> build/lib/rest_framework/templatetags
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/__init__.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/views.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/generators.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/coreapi.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/utils.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/inspectors.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] copying rest_framework/schemas/openapi.py -> build/lib/rest_framework/schemas
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/authtoken/management
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/management/__init__.py -> build/lib/rest_framework/authtoken/management
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/migrations/__init__.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/migrations/0001_initial.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/migrations/0002_auto_20160226_1747.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/migrations/0003_tokenproxy.py -> build/lib/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/authtoken/management/commands
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/management/commands/__init__.py -> build/lib/rest_framework/authtoken/management/commands
[2024-11-23T00:18:17.923Z] copying rest_framework/authtoken/management/commands/drf_create_token.py -> build/lib/rest_framework/authtoken/management/commands
[2024-11-23T00:18:17.923Z] creating build/lib/rest_framework/management/commands
[2024-11-23T00:18:17.923Z] copying rest_framework/management/commands/__init__.py -> build/lib/rest_framework/management/commands
[2024-11-23T00:18:17.923Z] copying rest_framework/management/commands/generateschema.py -> build/lib/rest_framework/management/commands
[2024-11-23T00:18:17.923Z] running egg_info
[2024-11-23T00:18:17.923Z] writing djangorestframework.egg-info/PKG-INFO
[2024-11-23T00:18:17.923Z] writing dependency_links to djangorestframework.egg-info/dependency_links.txt
[2024-11-23T00:18:17.923Z] writing requirements to djangorestframework.egg-info/requires.txt
[2024-11-23T00:18:17.923Z] writing top-level names to djangorestframework.egg-info/top_level.txt
[2024-11-23T00:18:17.923Z] reading manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T00:18:17.923Z] reading manifest template 'MANIFEST.in'
[2024-11-23T00:18:17.923Z] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[2024-11-23T00:18:17.923Z] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[2024-11-23T00:18:17.923Z] adding license file 'LICENSE.md'
[2024-11-23T00:18:17.923Z] writing manifest file 'djangorestframework.egg-info/SOURCES.txt'
[2024-11-23T00:18:17.923Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ach.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.923Z] !!
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] ********************************************************************************
[2024-11-23T00:18:17.923Z] ############################
[2024-11-23T00:18:17.923Z] # Package would be ignored #
[2024-11-23T00:18:17.923Z] ############################
[2024-11-23T00:18:17.923Z] Python recognizes 'rest_framework.locale.ach.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.923Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.923Z] package, please make sure that 'rest_framework.locale.ach.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.923Z] to the `packages` configuration field.
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.923Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.923Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] If you don't want 'rest_framework.locale.ach.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.923Z] already explicitly excluding 'rest_framework.locale.ach.LC_MESSAGES' via
[2024-11-23T00:18:17.923Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.923Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.923Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.923Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.923Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.923Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.923Z] ********************************************************************************
[2024-11-23T00:18:17.923Z]
[2024-11-23T00:18:17.923Z] !!
[2024-11-23T00:18:17.924Z] check.warn(importable)
[2024-11-23T00:18:17.924Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ar.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] # Package would be ignored #
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] Python recognizes 'rest_framework.locale.ar.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.924Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.924Z] package, please make sure that 'rest_framework.locale.ar.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.924Z] to the `packages` configuration field.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.924Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.924Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] If you don't want 'rest_framework.locale.ar.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.924Z] already explicitly excluding 'rest_framework.locale.ar.LC_MESSAGES' via
[2024-11-23T00:18:17.924Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.924Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.924Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.924Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.924Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.924Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z] check.warn(importable)
[2024-11-23T00:18:17.924Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.az.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] # Package would be ignored #
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] Python recognizes 'rest_framework.locale.az.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.924Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.924Z] package, please make sure that 'rest_framework.locale.az.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.924Z] to the `packages` configuration field.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.924Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.924Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] If you don't want 'rest_framework.locale.az.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.924Z] already explicitly excluding 'rest_framework.locale.az.LC_MESSAGES' via
[2024-11-23T00:18:17.924Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.924Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.924Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.924Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.924Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.924Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z] check.warn(importable)
[2024-11-23T00:18:17.924Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.be.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] # Package would be ignored #
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] Python recognizes 'rest_framework.locale.be.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.924Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.924Z] package, please make sure that 'rest_framework.locale.be.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.924Z] to the `packages` configuration field.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.924Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.924Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] If you don't want 'rest_framework.locale.be.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.924Z] already explicitly excluding 'rest_framework.locale.be.LC_MESSAGES' via
[2024-11-23T00:18:17.924Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.924Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.924Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.924Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.924Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.924Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z] check.warn(importable)
[2024-11-23T00:18:17.924Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.bg.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] # Package would be ignored #
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] Python recognizes 'rest_framework.locale.bg.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.924Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.924Z] package, please make sure that 'rest_framework.locale.bg.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.924Z] to the `packages` configuration field.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.924Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.924Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] If you don't want 'rest_framework.locale.bg.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.924Z] already explicitly excluding 'rest_framework.locale.bg.LC_MESSAGES' via
[2024-11-23T00:18:17.924Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.924Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.924Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.924Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.924Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.924Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z] check.warn(importable)
[2024-11-23T00:18:17.924Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ca.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.924Z] !!
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] ********************************************************************************
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] # Package would be ignored #
[2024-11-23T00:18:17.924Z] ############################
[2024-11-23T00:18:17.924Z] Python recognizes 'rest_framework.locale.ca.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.924Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.924Z] package, please make sure that 'rest_framework.locale.ca.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.924Z] to the `packages` configuration field.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.924Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.924Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] If you don't want 'rest_framework.locale.ca.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.924Z] already explicitly excluding 'rest_framework.locale.ca.LC_MESSAGES' via
[2024-11-23T00:18:17.924Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.924Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.924Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z]
[2024-11-23T00:18:17.924Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.924Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.924Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.924Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z] check.warn(importable)
[2024-11-23T00:18:17.925Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ca_ES.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] # Package would be ignored #
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] Python recognizes 'rest_framework.locale.ca_ES.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.925Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.925Z] package, please make sure that 'rest_framework.locale.ca_ES.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.925Z] to the `packages` configuration field.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.925Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.925Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] If you don't want 'rest_framework.locale.ca_ES.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.925Z] already explicitly excluding 'rest_framework.locale.ca_ES.LC_MESSAGES' via
[2024-11-23T00:18:17.925Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.925Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.925Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.925Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.925Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.925Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z] check.warn(importable)
[2024-11-23T00:18:17.925Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.cs.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] # Package would be ignored #
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] Python recognizes 'rest_framework.locale.cs.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.925Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.925Z] package, please make sure that 'rest_framework.locale.cs.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.925Z] to the `packages` configuration field.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.925Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.925Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] If you don't want 'rest_framework.locale.cs.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.925Z] already explicitly excluding 'rest_framework.locale.cs.LC_MESSAGES' via
[2024-11-23T00:18:17.925Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.925Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.925Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.925Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.925Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.925Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z] check.warn(importable)
[2024-11-23T00:18:17.925Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.da.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] # Package would be ignored #
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] Python recognizes 'rest_framework.locale.da.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.925Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.925Z] package, please make sure that 'rest_framework.locale.da.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.925Z] to the `packages` configuration field.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.925Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.925Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] If you don't want 'rest_framework.locale.da.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.925Z] already explicitly excluding 'rest_framework.locale.da.LC_MESSAGES' via
[2024-11-23T00:18:17.925Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.925Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.925Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.925Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.925Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.925Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z] check.warn(importable)
[2024-11-23T00:18:17.925Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.de.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] # Package would be ignored #
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] Python recognizes 'rest_framework.locale.de.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.925Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.925Z] package, please make sure that 'rest_framework.locale.de.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.925Z] to the `packages` configuration field.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.925Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.925Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] If you don't want 'rest_framework.locale.de.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.925Z] already explicitly excluding 'rest_framework.locale.de.LC_MESSAGES' via
[2024-11-23T00:18:17.925Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.925Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.925Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.925Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.925Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.925Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z] check.warn(importable)
[2024-11-23T00:18:17.925Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.el.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.925Z] !!
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] ********************************************************************************
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] # Package would be ignored #
[2024-11-23T00:18:17.925Z] ############################
[2024-11-23T00:18:17.925Z] Python recognizes 'rest_framework.locale.el.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.925Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.925Z] package, please make sure that 'rest_framework.locale.el.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.925Z] to the `packages` configuration field.
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.925Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.925Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.925Z]
[2024-11-23T00:18:17.925Z] If you don't want 'rest_framework.locale.el.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.925Z] already explicitly excluding 'rest_framework.locale.el.LC_MESSAGES' via
[2024-11-23T00:18:17.925Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.925Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.926Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.926Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.926Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.926Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z] check.warn(importable)
[2024-11-23T00:18:17.926Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.el_GR.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] # Package would be ignored #
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] Python recognizes 'rest_framework.locale.el_GR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.926Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.926Z] package, please make sure that 'rest_framework.locale.el_GR.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.926Z] to the `packages` configuration field.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.926Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.926Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] If you don't want 'rest_framework.locale.el_GR.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.926Z] already explicitly excluding 'rest_framework.locale.el_GR.LC_MESSAGES' via
[2024-11-23T00:18:17.926Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.926Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.926Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.926Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.926Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.926Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z] check.warn(importable)
[2024-11-23T00:18:17.926Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.en.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] # Package would be ignored #
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] Python recognizes 'rest_framework.locale.en.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.926Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.926Z] package, please make sure that 'rest_framework.locale.en.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.926Z] to the `packages` configuration field.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.926Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.926Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] If you don't want 'rest_framework.locale.en.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.926Z] already explicitly excluding 'rest_framework.locale.en.LC_MESSAGES' via
[2024-11-23T00:18:17.926Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.926Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.926Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.926Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.926Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.926Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z] check.warn(importable)
[2024-11-23T00:18:17.926Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.en_AU.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] # Package would be ignored #
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] Python recognizes 'rest_framework.locale.en_AU.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.926Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.926Z] package, please make sure that 'rest_framework.locale.en_AU.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.926Z] to the `packages` configuration field.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.926Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.926Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] If you don't want 'rest_framework.locale.en_AU.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.926Z] already explicitly excluding 'rest_framework.locale.en_AU.LC_MESSAGES' via
[2024-11-23T00:18:17.926Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.926Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.926Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.926Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.926Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.926Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z] check.warn(importable)
[2024-11-23T00:18:17.926Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.en_CA.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] # Package would be ignored #
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] Python recognizes 'rest_framework.locale.en_CA.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.926Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.926Z] package, please make sure that 'rest_framework.locale.en_CA.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.926Z] to the `packages` configuration field.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.926Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.926Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] If you don't want 'rest_framework.locale.en_CA.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.926Z] already explicitly excluding 'rest_framework.locale.en_CA.LC_MESSAGES' via
[2024-11-23T00:18:17.926Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.926Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.926Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.926Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.926Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.926Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z] check.warn(importable)
[2024-11-23T00:18:17.926Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.en_US.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.926Z] !!
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] ********************************************************************************
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] # Package would be ignored #
[2024-11-23T00:18:17.926Z] ############################
[2024-11-23T00:18:17.926Z] Python recognizes 'rest_framework.locale.en_US.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.926Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.926Z] package, please make sure that 'rest_framework.locale.en_US.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.926Z] to the `packages` configuration field.
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.926Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.926Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.926Z]
[2024-11-23T00:18:17.926Z] If you don't want 'rest_framework.locale.en_US.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.926Z] already explicitly excluding 'rest_framework.locale.en_US.LC_MESSAGES' via
[2024-11-23T00:18:17.926Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.927Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.927Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.927Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.927Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.927Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z] check.warn(importable)
[2024-11-23T00:18:17.927Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.es.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] # Package would be ignored #
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] Python recognizes 'rest_framework.locale.es.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.927Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.927Z] package, please make sure that 'rest_framework.locale.es.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.927Z] to the `packages` configuration field.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.927Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.927Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] If you don't want 'rest_framework.locale.es.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.927Z] already explicitly excluding 'rest_framework.locale.es.LC_MESSAGES' via
[2024-11-23T00:18:17.927Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.927Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.927Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.927Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.927Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.927Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z] check.warn(importable)
[2024-11-23T00:18:17.927Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.et.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] # Package would be ignored #
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] Python recognizes 'rest_framework.locale.et.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.927Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.927Z] package, please make sure that 'rest_framework.locale.et.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.927Z] to the `packages` configuration field.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.927Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.927Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] If you don't want 'rest_framework.locale.et.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.927Z] already explicitly excluding 'rest_framework.locale.et.LC_MESSAGES' via
[2024-11-23T00:18:17.927Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.927Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.927Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.927Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.927Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.927Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z] check.warn(importable)
[2024-11-23T00:18:17.927Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.fa.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] # Package would be ignored #
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] Python recognizes 'rest_framework.locale.fa.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.927Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.927Z] package, please make sure that 'rest_framework.locale.fa.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.927Z] to the `packages` configuration field.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.927Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.927Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] If you don't want 'rest_framework.locale.fa.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.927Z] already explicitly excluding 'rest_framework.locale.fa.LC_MESSAGES' via
[2024-11-23T00:18:17.927Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.927Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.927Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.927Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.927Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.927Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z] check.warn(importable)
[2024-11-23T00:18:17.927Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.fa_IR.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] # Package would be ignored #
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.927Z] Python recognizes 'rest_framework.locale.fa_IR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.927Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.927Z] package, please make sure that 'rest_framework.locale.fa_IR.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.927Z] to the `packages` configuration field.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.927Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.927Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] If you don't want 'rest_framework.locale.fa_IR.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.927Z] already explicitly excluding 'rest_framework.locale.fa_IR.LC_MESSAGES' via
[2024-11-23T00:18:17.927Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.927Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.927Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.927Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.927Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.927Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z] check.warn(importable)
[2024-11-23T00:18:17.927Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.fi.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.927Z] !!
[2024-11-23T00:18:17.927Z]
[2024-11-23T00:18:17.927Z] ********************************************************************************
[2024-11-23T00:18:17.927Z] ############################
[2024-11-23T00:18:17.928Z] # Package would be ignored #
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] Python recognizes 'rest_framework.locale.fi.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.928Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.928Z] package, please make sure that 'rest_framework.locale.fi.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.928Z] to the `packages` configuration field.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.928Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.928Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] If you don't want 'rest_framework.locale.fi.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.928Z] already explicitly excluding 'rest_framework.locale.fi.LC_MESSAGES' via
[2024-11-23T00:18:17.928Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.928Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.928Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.928Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.928Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.928Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z] check.warn(importable)
[2024-11-23T00:18:17.928Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.fr.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] # Package would be ignored #
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] Python recognizes 'rest_framework.locale.fr.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.928Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.928Z] package, please make sure that 'rest_framework.locale.fr.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.928Z] to the `packages` configuration field.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.928Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.928Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] If you don't want 'rest_framework.locale.fr.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.928Z] already explicitly excluding 'rest_framework.locale.fr.LC_MESSAGES' via
[2024-11-23T00:18:17.928Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.928Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.928Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.928Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.928Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.928Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z] check.warn(importable)
[2024-11-23T00:18:17.928Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.fr_CA.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] # Package would be ignored #
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] Python recognizes 'rest_framework.locale.fr_CA.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.928Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.928Z] package, please make sure that 'rest_framework.locale.fr_CA.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.928Z] to the `packages` configuration field.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.928Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.928Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] If you don't want 'rest_framework.locale.fr_CA.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.928Z] already explicitly excluding 'rest_framework.locale.fr_CA.LC_MESSAGES' via
[2024-11-23T00:18:17.928Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.928Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.928Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.928Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.928Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.928Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z] check.warn(importable)
[2024-11-23T00:18:17.928Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.gl.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] # Package would be ignored #
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] Python recognizes 'rest_framework.locale.gl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.928Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.928Z] package, please make sure that 'rest_framework.locale.gl.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.928Z] to the `packages` configuration field.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.928Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.928Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] If you don't want 'rest_framework.locale.gl.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.928Z] already explicitly excluding 'rest_framework.locale.gl.LC_MESSAGES' via
[2024-11-23T00:18:17.928Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.928Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.928Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.928Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.928Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.928Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z] check.warn(importable)
[2024-11-23T00:18:17.928Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.gl_ES.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] # Package would be ignored #
[2024-11-23T00:18:17.928Z] ############################
[2024-11-23T00:18:17.928Z] Python recognizes 'rest_framework.locale.gl_ES.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.928Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.928Z] package, please make sure that 'rest_framework.locale.gl_ES.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.928Z] to the `packages` configuration field.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.928Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.928Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] If you don't want 'rest_framework.locale.gl_ES.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.928Z] already explicitly excluding 'rest_framework.locale.gl_ES.LC_MESSAGES' via
[2024-11-23T00:18:17.928Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.928Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.928Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.928Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.928Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.928Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.928Z] ********************************************************************************
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z] check.warn(importable)
[2024-11-23T00:18:17.928Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.he_IL.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.928Z] !!
[2024-11-23T00:18:17.928Z]
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] # Package would be ignored #
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] Python recognizes 'rest_framework.locale.he_IL.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.929Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.929Z] package, please make sure that 'rest_framework.locale.he_IL.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.929Z] to the `packages` configuration field.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.929Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.929Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] If you don't want 'rest_framework.locale.he_IL.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.929Z] already explicitly excluding 'rest_framework.locale.he_IL.LC_MESSAGES' via
[2024-11-23T00:18:17.929Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.929Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.929Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.929Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.929Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.929Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z] check.warn(importable)
[2024-11-23T00:18:17.929Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.hu.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] # Package would be ignored #
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] Python recognizes 'rest_framework.locale.hu.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.929Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.929Z] package, please make sure that 'rest_framework.locale.hu.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.929Z] to the `packages` configuration field.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.929Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.929Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] If you don't want 'rest_framework.locale.hu.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.929Z] already explicitly excluding 'rest_framework.locale.hu.LC_MESSAGES' via
[2024-11-23T00:18:17.929Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.929Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.929Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.929Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.929Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.929Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z] check.warn(importable)
[2024-11-23T00:18:17.929Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.hy.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] # Package would be ignored #
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] Python recognizes 'rest_framework.locale.hy.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.929Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.929Z] package, please make sure that 'rest_framework.locale.hy.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.929Z] to the `packages` configuration field.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.929Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.929Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] If you don't want 'rest_framework.locale.hy.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.929Z] already explicitly excluding 'rest_framework.locale.hy.LC_MESSAGES' via
[2024-11-23T00:18:17.929Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.929Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.929Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.929Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.929Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.929Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z] check.warn(importable)
[2024-11-23T00:18:17.929Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.id.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] # Package would be ignored #
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] Python recognizes 'rest_framework.locale.id.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.929Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.929Z] package, please make sure that 'rest_framework.locale.id.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.929Z] to the `packages` configuration field.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.929Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.929Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] If you don't want 'rest_framework.locale.id.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.929Z] already explicitly excluding 'rest_framework.locale.id.LC_MESSAGES' via
[2024-11-23T00:18:17.929Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.929Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.929Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.929Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.929Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.929Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z] check.warn(importable)
[2024-11-23T00:18:17.929Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.it.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] # Package would be ignored #
[2024-11-23T00:18:17.929Z] ############################
[2024-11-23T00:18:17.929Z] Python recognizes 'rest_framework.locale.it.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.929Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.929Z] package, please make sure that 'rest_framework.locale.it.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.929Z] to the `packages` configuration field.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.929Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.929Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] If you don't want 'rest_framework.locale.it.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.929Z] already explicitly excluding 'rest_framework.locale.it.LC_MESSAGES' via
[2024-11-23T00:18:17.929Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.929Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.929Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.929Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.929Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.929Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.929Z] ********************************************************************************
[2024-11-23T00:18:17.929Z]
[2024-11-23T00:18:17.929Z] !!
[2024-11-23T00:18:17.929Z] check.warn(importable)
[2024-11-23T00:18:17.930Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ja.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] # Package would be ignored #
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] Python recognizes 'rest_framework.locale.ja.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.930Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.930Z] package, please make sure that 'rest_framework.locale.ja.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.930Z] to the `packages` configuration field.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.930Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.930Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] If you don't want 'rest_framework.locale.ja.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.930Z] already explicitly excluding 'rest_framework.locale.ja.LC_MESSAGES' via
[2024-11-23T00:18:17.930Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.930Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.930Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.930Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.930Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.930Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z] check.warn(importable)
[2024-11-23T00:18:17.930Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ko_KR.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] # Package would be ignored #
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] Python recognizes 'rest_framework.locale.ko_KR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.930Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.930Z] package, please make sure that 'rest_framework.locale.ko_KR.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.930Z] to the `packages` configuration field.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.930Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.930Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] If you don't want 'rest_framework.locale.ko_KR.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.930Z] already explicitly excluding 'rest_framework.locale.ko_KR.LC_MESSAGES' via
[2024-11-23T00:18:17.930Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.930Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.930Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.930Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.930Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.930Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z] check.warn(importable)
[2024-11-23T00:18:17.930Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.lt.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] # Package would be ignored #
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] Python recognizes 'rest_framework.locale.lt.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.930Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.930Z] package, please make sure that 'rest_framework.locale.lt.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.930Z] to the `packages` configuration field.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.930Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.930Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] If you don't want 'rest_framework.locale.lt.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.930Z] already explicitly excluding 'rest_framework.locale.lt.LC_MESSAGES' via
[2024-11-23T00:18:17.930Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.930Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.930Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.930Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.930Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.930Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z] check.warn(importable)
[2024-11-23T00:18:17.930Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.lv.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] # Package would be ignored #
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] Python recognizes 'rest_framework.locale.lv.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.930Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.930Z] package, please make sure that 'rest_framework.locale.lv.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.930Z] to the `packages` configuration field.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.930Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.930Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] If you don't want 'rest_framework.locale.lv.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.930Z] already explicitly excluding 'rest_framework.locale.lv.LC_MESSAGES' via
[2024-11-23T00:18:17.930Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.930Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.930Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.930Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.930Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.930Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z] check.warn(importable)
[2024-11-23T00:18:17.930Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.mk.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.930Z] !!
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] # Package would be ignored #
[2024-11-23T00:18:17.930Z] ############################
[2024-11-23T00:18:17.930Z] Python recognizes 'rest_framework.locale.mk.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.930Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.930Z] package, please make sure that 'rest_framework.locale.mk.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.930Z] to the `packages` configuration field.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.930Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.930Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] If you don't want 'rest_framework.locale.mk.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.930Z] already explicitly excluding 'rest_framework.locale.mk.LC_MESSAGES' via
[2024-11-23T00:18:17.930Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.930Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.930Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z]
[2024-11-23T00:18:17.930Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.930Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.930Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.930Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.930Z] ********************************************************************************
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z] check.warn(importable)
[2024-11-23T00:18:17.931Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.nb.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] # Package would be ignored #
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] Python recognizes 'rest_framework.locale.nb.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.931Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.931Z] package, please make sure that 'rest_framework.locale.nb.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.931Z] to the `packages` configuration field.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.931Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.931Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] If you don't want 'rest_framework.locale.nb.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.931Z] already explicitly excluding 'rest_framework.locale.nb.LC_MESSAGES' via
[2024-11-23T00:18:17.931Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.931Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.931Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.931Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.931Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.931Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z] check.warn(importable)
[2024-11-23T00:18:17.931Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ne_NP.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] # Package would be ignored #
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] Python recognizes 'rest_framework.locale.ne_NP.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.931Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.931Z] package, please make sure that 'rest_framework.locale.ne_NP.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.931Z] to the `packages` configuration field.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.931Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.931Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] If you don't want 'rest_framework.locale.ne_NP.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.931Z] already explicitly excluding 'rest_framework.locale.ne_NP.LC_MESSAGES' via
[2024-11-23T00:18:17.931Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.931Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.931Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.931Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.931Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.931Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z] check.warn(importable)
[2024-11-23T00:18:17.931Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.nl.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] # Package would be ignored #
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] Python recognizes 'rest_framework.locale.nl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.931Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.931Z] package, please make sure that 'rest_framework.locale.nl.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.931Z] to the `packages` configuration field.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.931Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.931Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] If you don't want 'rest_framework.locale.nl.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.931Z] already explicitly excluding 'rest_framework.locale.nl.LC_MESSAGES' via
[2024-11-23T00:18:17.931Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.931Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.931Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.931Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.931Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.931Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z] check.warn(importable)
[2024-11-23T00:18:17.931Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.nn.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] # Package would be ignored #
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] Python recognizes 'rest_framework.locale.nn.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.931Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.931Z] package, please make sure that 'rest_framework.locale.nn.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.931Z] to the `packages` configuration field.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.931Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.931Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] If you don't want 'rest_framework.locale.nn.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.931Z] already explicitly excluding 'rest_framework.locale.nn.LC_MESSAGES' via
[2024-11-23T00:18:17.931Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.931Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.931Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.931Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.931Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.931Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z] check.warn(importable)
[2024-11-23T00:18:17.931Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.no.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.931Z] !!
[2024-11-23T00:18:17.931Z]
[2024-11-23T00:18:17.931Z] ********************************************************************************
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] # Package would be ignored #
[2024-11-23T00:18:17.931Z] ############################
[2024-11-23T00:18:17.931Z] Python recognizes 'rest_framework.locale.no.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.931Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.932Z] package, please make sure that 'rest_framework.locale.no.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.932Z] to the `packages` configuration field.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.932Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.932Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] If you don't want 'rest_framework.locale.no.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.932Z] already explicitly excluding 'rest_framework.locale.no.LC_MESSAGES' via
[2024-11-23T00:18:17.932Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.932Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.932Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.932Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.932Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.932Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z] check.warn(importable)
[2024-11-23T00:18:17.932Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.pl.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] # Package would be ignored #
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] Python recognizes 'rest_framework.locale.pl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.932Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.932Z] package, please make sure that 'rest_framework.locale.pl.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.932Z] to the `packages` configuration field.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.932Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.932Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] If you don't want 'rest_framework.locale.pl.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.932Z] already explicitly excluding 'rest_framework.locale.pl.LC_MESSAGES' via
[2024-11-23T00:18:17.932Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.932Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.932Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.932Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.932Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.932Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z] check.warn(importable)
[2024-11-23T00:18:17.932Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.pt.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] # Package would be ignored #
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] Python recognizes 'rest_framework.locale.pt.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.932Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.932Z] package, please make sure that 'rest_framework.locale.pt.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.932Z] to the `packages` configuration field.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.932Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.932Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] If you don't want 'rest_framework.locale.pt.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.932Z] already explicitly excluding 'rest_framework.locale.pt.LC_MESSAGES' via
[2024-11-23T00:18:17.932Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.932Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.932Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.932Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.932Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.932Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z] check.warn(importable)
[2024-11-23T00:18:17.932Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.pt_BR.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] # Package would be ignored #
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] Python recognizes 'rest_framework.locale.pt_BR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.932Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.932Z] package, please make sure that 'rest_framework.locale.pt_BR.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.932Z] to the `packages` configuration field.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.932Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.932Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] If you don't want 'rest_framework.locale.pt_BR.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.932Z] already explicitly excluding 'rest_framework.locale.pt_BR.LC_MESSAGES' via
[2024-11-23T00:18:17.932Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.932Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.932Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.932Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.932Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.932Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z] check.warn(importable)
[2024-11-23T00:18:17.932Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.pt_PT.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] # Package would be ignored #
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] Python recognizes 'rest_framework.locale.pt_PT.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.932Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.932Z] package, please make sure that 'rest_framework.locale.pt_PT.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.932Z] to the `packages` configuration field.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.932Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.932Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] If you don't want 'rest_framework.locale.pt_PT.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.932Z] already explicitly excluding 'rest_framework.locale.pt_PT.LC_MESSAGES' via
[2024-11-23T00:18:17.932Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.932Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.932Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.932Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.932Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.932Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z] check.warn(importable)
[2024-11-23T00:18:17.932Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ro.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.932Z] !!
[2024-11-23T00:18:17.932Z]
[2024-11-23T00:18:17.932Z] ********************************************************************************
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] # Package would be ignored #
[2024-11-23T00:18:17.932Z] ############################
[2024-11-23T00:18:17.932Z] Python recognizes 'rest_framework.locale.ro.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.933Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.933Z] package, please make sure that 'rest_framework.locale.ro.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.933Z] to the `packages` configuration field.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.933Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.933Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] If you don't want 'rest_framework.locale.ro.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.933Z] already explicitly excluding 'rest_framework.locale.ro.LC_MESSAGES' via
[2024-11-23T00:18:17.933Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.933Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.933Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.933Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.933Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.933Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z] check.warn(importable)
[2024-11-23T00:18:17.933Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ru.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] # Package would be ignored #
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] Python recognizes 'rest_framework.locale.ru.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.933Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.933Z] package, please make sure that 'rest_framework.locale.ru.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.933Z] to the `packages` configuration field.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.933Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.933Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] If you don't want 'rest_framework.locale.ru.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.933Z] already explicitly excluding 'rest_framework.locale.ru.LC_MESSAGES' via
[2024-11-23T00:18:17.933Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.933Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.933Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.933Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.933Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.933Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z] check.warn(importable)
[2024-11-23T00:18:17.933Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.ru_RU.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] # Package would be ignored #
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] Python recognizes 'rest_framework.locale.ru_RU.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.933Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.933Z] package, please make sure that 'rest_framework.locale.ru_RU.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.933Z] to the `packages` configuration field.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.933Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.933Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] If you don't want 'rest_framework.locale.ru_RU.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.933Z] already explicitly excluding 'rest_framework.locale.ru_RU.LC_MESSAGES' via
[2024-11-23T00:18:17.933Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.933Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.933Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.933Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.933Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.933Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z] check.warn(importable)
[2024-11-23T00:18:17.933Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.sk.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] # Package would be ignored #
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] Python recognizes 'rest_framework.locale.sk.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.933Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.933Z] package, please make sure that 'rest_framework.locale.sk.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.933Z] to the `packages` configuration field.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.933Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.933Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] If you don't want 'rest_framework.locale.sk.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.933Z] already explicitly excluding 'rest_framework.locale.sk.LC_MESSAGES' via
[2024-11-23T00:18:17.933Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.933Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.933Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.933Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.933Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.933Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z] check.warn(importable)
[2024-11-23T00:18:17.933Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.sl.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] # Package would be ignored #
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] Python recognizes 'rest_framework.locale.sl.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.933Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.933Z] package, please make sure that 'rest_framework.locale.sl.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.933Z] to the `packages` configuration field.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.933Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.933Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] If you don't want 'rest_framework.locale.sl.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.933Z] already explicitly excluding 'rest_framework.locale.sl.LC_MESSAGES' via
[2024-11-23T00:18:17.933Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.933Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.933Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.933Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.933Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.933Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z] check.warn(importable)
[2024-11-23T00:18:17.933Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.sv.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.933Z] !!
[2024-11-23T00:18:17.933Z]
[2024-11-23T00:18:17.933Z] ********************************************************************************
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.933Z] # Package would be ignored #
[2024-11-23T00:18:17.933Z] ############################
[2024-11-23T00:18:17.934Z] Python recognizes 'rest_framework.locale.sv.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.934Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.934Z] package, please make sure that 'rest_framework.locale.sv.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.934Z] to the `packages` configuration field.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.934Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.934Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] If you don't want 'rest_framework.locale.sv.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.934Z] already explicitly excluding 'rest_framework.locale.sv.LC_MESSAGES' via
[2024-11-23T00:18:17.934Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.934Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.934Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.934Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.934Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.934Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z] check.warn(importable)
[2024-11-23T00:18:17.934Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.th.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] # Package would be ignored #
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] Python recognizes 'rest_framework.locale.th.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.934Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.934Z] package, please make sure that 'rest_framework.locale.th.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.934Z] to the `packages` configuration field.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.934Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.934Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] If you don't want 'rest_framework.locale.th.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.934Z] already explicitly excluding 'rest_framework.locale.th.LC_MESSAGES' via
[2024-11-23T00:18:17.934Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.934Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.934Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.934Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.934Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.934Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z] check.warn(importable)
[2024-11-23T00:18:17.934Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.tr.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] # Package would be ignored #
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] Python recognizes 'rest_framework.locale.tr.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.934Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.934Z] package, please make sure that 'rest_framework.locale.tr.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.934Z] to the `packages` configuration field.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.934Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.934Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] If you don't want 'rest_framework.locale.tr.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.934Z] already explicitly excluding 'rest_framework.locale.tr.LC_MESSAGES' via
[2024-11-23T00:18:17.934Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.934Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.934Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.934Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.934Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.934Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z] check.warn(importable)
[2024-11-23T00:18:17.934Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.tr_TR.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] # Package would be ignored #
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] Python recognizes 'rest_framework.locale.tr_TR.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.934Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.934Z] package, please make sure that 'rest_framework.locale.tr_TR.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.934Z] to the `packages` configuration field.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.934Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.934Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] If you don't want 'rest_framework.locale.tr_TR.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.934Z] already explicitly excluding 'rest_framework.locale.tr_TR.LC_MESSAGES' via
[2024-11-23T00:18:17.934Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.934Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.934Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.934Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.934Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.934Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z] check.warn(importable)
[2024-11-23T00:18:17.934Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.uk.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] # Package would be ignored #
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] Python recognizes 'rest_framework.locale.uk.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.934Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.934Z] package, please make sure that 'rest_framework.locale.uk.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.934Z] to the `packages` configuration field.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.934Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.934Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] If you don't want 'rest_framework.locale.uk.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.934Z] already explicitly excluding 'rest_framework.locale.uk.LC_MESSAGES' via
[2024-11-23T00:18:17.934Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.934Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.934Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.934Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.934Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.934Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z] check.warn(importable)
[2024-11-23T00:18:17.934Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.vi.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.934Z] !!
[2024-11-23T00:18:17.934Z]
[2024-11-23T00:18:17.934Z] ********************************************************************************
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.934Z] # Package would be ignored #
[2024-11-23T00:18:17.934Z] ############################
[2024-11-23T00:18:17.935Z] Python recognizes 'rest_framework.locale.vi.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.935Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.935Z] package, please make sure that 'rest_framework.locale.vi.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.935Z] to the `packages` configuration field.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.935Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.935Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] If you don't want 'rest_framework.locale.vi.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.935Z] already explicitly excluding 'rest_framework.locale.vi.LC_MESSAGES' via
[2024-11-23T00:18:17.935Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.935Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.935Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.935Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.935Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.935Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z] check.warn(importable)
[2024-11-23T00:18:17.935Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.zh_CN.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] # Package would be ignored #
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] Python recognizes 'rest_framework.locale.zh_CN.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.935Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.935Z] package, please make sure that 'rest_framework.locale.zh_CN.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.935Z] to the `packages` configuration field.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.935Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.935Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] If you don't want 'rest_framework.locale.zh_CN.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.935Z] already explicitly excluding 'rest_framework.locale.zh_CN.LC_MESSAGES' via
[2024-11-23T00:18:17.935Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.935Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.935Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.935Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.935Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.935Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z] check.warn(importable)
[2024-11-23T00:18:17.935Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.zh_Hans.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] # Package would be ignored #
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] Python recognizes 'rest_framework.locale.zh_Hans.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.935Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.935Z] package, please make sure that 'rest_framework.locale.zh_Hans.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.935Z] to the `packages` configuration field.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.935Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.935Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] If you don't want 'rest_framework.locale.zh_Hans.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.935Z] already explicitly excluding 'rest_framework.locale.zh_Hans.LC_MESSAGES' via
[2024-11-23T00:18:17.935Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.935Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.935Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.935Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.935Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.935Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z] check.warn(importable)
[2024-11-23T00:18:17.935Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.zh_Hant.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] # Package would be ignored #
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] Python recognizes 'rest_framework.locale.zh_Hant.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.935Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.935Z] package, please make sure that 'rest_framework.locale.zh_Hant.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.935Z] to the `packages` configuration field.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.935Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.935Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] If you don't want 'rest_framework.locale.zh_Hant.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.935Z] already explicitly excluding 'rest_framework.locale.zh_Hant.LC_MESSAGES' via
[2024-11-23T00:18:17.935Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.935Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.935Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.935Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.935Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.935Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z] check.warn(importable)
[2024-11-23T00:18:17.935Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.locale.zh_TW.LC_MESSAGES' is absent from the `packages` configuration.
[2024-11-23T00:18:17.935Z] !!
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] ********************************************************************************
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] # Package would be ignored #
[2024-11-23T00:18:17.935Z] ############################
[2024-11-23T00:18:17.935Z] Python recognizes 'rest_framework.locale.zh_TW.LC_MESSAGES' as an importable package[^1],
[2024-11-23T00:18:17.935Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.935Z] package, please make sure that 'rest_framework.locale.zh_TW.LC_MESSAGES' is explicitly added
[2024-11-23T00:18:17.935Z] to the `packages` configuration field.
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.935Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.935Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.935Z]
[2024-11-23T00:18:17.935Z] If you don't want 'rest_framework.locale.zh_TW.LC_MESSAGES' to be distributed and are
[2024-11-23T00:18:17.935Z] already explicitly excluding 'rest_framework.locale.zh_TW.LC_MESSAGES' via
[2024-11-23T00:18:17.935Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.935Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.936Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.936Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.936Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.936Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z] check.warn(importable)
[2024-11-23T00:18:17.936Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.css' is absent from the `packages` configuration.
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] # Package would be ignored #
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] Python recognizes 'rest_framework.static.rest_framework.css' as an importable package[^1],
[2024-11-23T00:18:17.936Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.936Z] package, please make sure that 'rest_framework.static.rest_framework.css' is explicitly added
[2024-11-23T00:18:17.936Z] to the `packages` configuration field.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.936Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.936Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] If you don't want 'rest_framework.static.rest_framework.css' to be distributed and are
[2024-11-23T00:18:17.936Z] already explicitly excluding 'rest_framework.static.rest_framework.css' via
[2024-11-23T00:18:17.936Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.936Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.936Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.936Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.936Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.936Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z] check.warn(importable)
[2024-11-23T00:18:17.936Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.docs.css' is absent from the `packages` configuration.
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] # Package would be ignored #
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] Python recognizes 'rest_framework.static.rest_framework.docs.css' as an importable package[^1],
[2024-11-23T00:18:17.936Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.936Z] package, please make sure that 'rest_framework.static.rest_framework.docs.css' is explicitly added
[2024-11-23T00:18:17.936Z] to the `packages` configuration field.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.936Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.936Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] If you don't want 'rest_framework.static.rest_framework.docs.css' to be distributed and are
[2024-11-23T00:18:17.936Z] already explicitly excluding 'rest_framework.static.rest_framework.docs.css' via
[2024-11-23T00:18:17.936Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.936Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.936Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.936Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.936Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.936Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z] check.warn(importable)
[2024-11-23T00:18:17.936Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.docs.img' is absent from the `packages` configuration.
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] # Package would be ignored #
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] Python recognizes 'rest_framework.static.rest_framework.docs.img' as an importable package[^1],
[2024-11-23T00:18:17.936Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.936Z] package, please make sure that 'rest_framework.static.rest_framework.docs.img' is explicitly added
[2024-11-23T00:18:17.936Z] to the `packages` configuration field.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.936Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.936Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] If you don't want 'rest_framework.static.rest_framework.docs.img' to be distributed and are
[2024-11-23T00:18:17.936Z] already explicitly excluding 'rest_framework.static.rest_framework.docs.img' via
[2024-11-23T00:18:17.936Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.936Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.936Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.936Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.936Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.936Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z] check.warn(importable)
[2024-11-23T00:18:17.936Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.docs.js' is absent from the `packages` configuration.
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] # Package would be ignored #
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] Python recognizes 'rest_framework.static.rest_framework.docs.js' as an importable package[^1],
[2024-11-23T00:18:17.936Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.936Z] package, please make sure that 'rest_framework.static.rest_framework.docs.js' is explicitly added
[2024-11-23T00:18:17.936Z] to the `packages` configuration field.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.936Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.936Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] If you don't want 'rest_framework.static.rest_framework.docs.js' to be distributed and are
[2024-11-23T00:18:17.936Z] already explicitly excluding 'rest_framework.static.rest_framework.docs.js' via
[2024-11-23T00:18:17.936Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.936Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.936Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.936Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.936Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.936Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z] check.warn(importable)
[2024-11-23T00:18:17.936Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.fonts' is absent from the `packages` configuration.
[2024-11-23T00:18:17.936Z] !!
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] ********************************************************************************
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] # Package would be ignored #
[2024-11-23T00:18:17.936Z] ############################
[2024-11-23T00:18:17.936Z] Python recognizes 'rest_framework.static.rest_framework.fonts' as an importable package[^1],
[2024-11-23T00:18:17.936Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.936Z] package, please make sure that 'rest_framework.static.rest_framework.fonts' is explicitly added
[2024-11-23T00:18:17.936Z] to the `packages` configuration field.
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.936Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.936Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.936Z]
[2024-11-23T00:18:17.936Z] If you don't want 'rest_framework.static.rest_framework.fonts' to be distributed and are
[2024-11-23T00:18:17.937Z] already explicitly excluding 'rest_framework.static.rest_framework.fonts' via
[2024-11-23T00:18:17.937Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.937Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.937Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.937Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.937Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.937Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z] check.warn(importable)
[2024-11-23T00:18:17.937Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.img' is absent from the `packages` configuration.
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] # Package would be ignored #
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] Python recognizes 'rest_framework.static.rest_framework.img' as an importable package[^1],
[2024-11-23T00:18:17.937Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.937Z] package, please make sure that 'rest_framework.static.rest_framework.img' is explicitly added
[2024-11-23T00:18:17.937Z] to the `packages` configuration field.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.937Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.937Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] If you don't want 'rest_framework.static.rest_framework.img' to be distributed and are
[2024-11-23T00:18:17.937Z] already explicitly excluding 'rest_framework.static.rest_framework.img' via
[2024-11-23T00:18:17.937Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.937Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.937Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.937Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.937Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.937Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z] check.warn(importable)
[2024-11-23T00:18:17.937Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.static.rest_framework.js' is absent from the `packages` configuration.
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] # Package would be ignored #
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] Python recognizes 'rest_framework.static.rest_framework.js' as an importable package[^1],
[2024-11-23T00:18:17.937Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.937Z] package, please make sure that 'rest_framework.static.rest_framework.js' is explicitly added
[2024-11-23T00:18:17.937Z] to the `packages` configuration field.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.937Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.937Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] If you don't want 'rest_framework.static.rest_framework.js' to be distributed and are
[2024-11-23T00:18:17.937Z] already explicitly excluding 'rest_framework.static.rest_framework.js' via
[2024-11-23T00:18:17.937Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.937Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.937Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.937Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.937Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.937Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z] check.warn(importable)
[2024-11-23T00:18:17.937Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework' is absent from the `packages` configuration.
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] # Package would be ignored #
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] Python recognizes 'rest_framework.templates.rest_framework' as an importable package[^1],
[2024-11-23T00:18:17.937Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.937Z] package, please make sure that 'rest_framework.templates.rest_framework' is explicitly added
[2024-11-23T00:18:17.937Z] to the `packages` configuration field.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.937Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.937Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] If you don't want 'rest_framework.templates.rest_framework' to be distributed and are
[2024-11-23T00:18:17.937Z] already explicitly excluding 'rest_framework.templates.rest_framework' via
[2024-11-23T00:18:17.937Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.937Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.937Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.937Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.937Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.937Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z] check.warn(importable)
[2024-11-23T00:18:17.937Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.admin' is absent from the `packages` configuration.
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] # Package would be ignored #
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] Python recognizes 'rest_framework.templates.rest_framework.admin' as an importable package[^1],
[2024-11-23T00:18:17.937Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.937Z] package, please make sure that 'rest_framework.templates.rest_framework.admin' is explicitly added
[2024-11-23T00:18:17.937Z] to the `packages` configuration field.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.937Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.937Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] If you don't want 'rest_framework.templates.rest_framework.admin' to be distributed and are
[2024-11-23T00:18:17.937Z] already explicitly excluding 'rest_framework.templates.rest_framework.admin' via
[2024-11-23T00:18:17.937Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.937Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.937Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.937Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.937Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.937Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z] check.warn(importable)
[2024-11-23T00:18:17.937Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.docs' is absent from the `packages` configuration.
[2024-11-23T00:18:17.937Z] !!
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] ********************************************************************************
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] # Package would be ignored #
[2024-11-23T00:18:17.937Z] ############################
[2024-11-23T00:18:17.937Z] Python recognizes 'rest_framework.templates.rest_framework.docs' as an importable package[^1],
[2024-11-23T00:18:17.937Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.937Z] package, please make sure that 'rest_framework.templates.rest_framework.docs' is explicitly added
[2024-11-23T00:18:17.937Z] to the `packages` configuration field.
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.937Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.937Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.937Z]
[2024-11-23T00:18:17.937Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] If you don't want 'rest_framework.templates.rest_framework.docs' to be distributed and are
[2024-11-23T00:18:17.938Z] already explicitly excluding 'rest_framework.templates.rest_framework.docs' via
[2024-11-23T00:18:17.938Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.938Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.938Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.938Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.938Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.938Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z] check.warn(importable)
[2024-11-23T00:18:17.938Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.docs.auth' is absent from the `packages` configuration.
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] # Package would be ignored #
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] Python recognizes 'rest_framework.templates.rest_framework.docs.auth' as an importable package[^1],
[2024-11-23T00:18:17.938Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.938Z] package, please make sure that 'rest_framework.templates.rest_framework.docs.auth' is explicitly added
[2024-11-23T00:18:17.938Z] to the `packages` configuration field.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.938Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.938Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] If you don't want 'rest_framework.templates.rest_framework.docs.auth' to be distributed and are
[2024-11-23T00:18:17.938Z] already explicitly excluding 'rest_framework.templates.rest_framework.docs.auth' via
[2024-11-23T00:18:17.938Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.938Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.938Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.938Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.938Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.938Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z] check.warn(importable)
[2024-11-23T00:18:17.938Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.docs.langs' is absent from the `packages` configuration.
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] # Package would be ignored #
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] Python recognizes 'rest_framework.templates.rest_framework.docs.langs' as an importable package[^1],
[2024-11-23T00:18:17.938Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.938Z] package, please make sure that 'rest_framework.templates.rest_framework.docs.langs' is explicitly added
[2024-11-23T00:18:17.938Z] to the `packages` configuration field.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.938Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.938Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] If you don't want 'rest_framework.templates.rest_framework.docs.langs' to be distributed and are
[2024-11-23T00:18:17.938Z] already explicitly excluding 'rest_framework.templates.rest_framework.docs.langs' via
[2024-11-23T00:18:17.938Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.938Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.938Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.938Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.938Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.938Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z] check.warn(importable)
[2024-11-23T00:18:17.938Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.filters' is absent from the `packages` configuration.
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] # Package would be ignored #
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] Python recognizes 'rest_framework.templates.rest_framework.filters' as an importable package[^1],
[2024-11-23T00:18:17.938Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.938Z] package, please make sure that 'rest_framework.templates.rest_framework.filters' is explicitly added
[2024-11-23T00:18:17.938Z] to the `packages` configuration field.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.938Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.938Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] If you don't want 'rest_framework.templates.rest_framework.filters' to be distributed and are
[2024-11-23T00:18:17.938Z] already explicitly excluding 'rest_framework.templates.rest_framework.filters' via
[2024-11-23T00:18:17.938Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.938Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.938Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.938Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.938Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.938Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z] check.warn(importable)
[2024-11-23T00:18:17.938Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.horizontal' is absent from the `packages` configuration.
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] # Package would be ignored #
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] Python recognizes 'rest_framework.templates.rest_framework.horizontal' as an importable package[^1],
[2024-11-23T00:18:17.938Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.938Z] package, please make sure that 'rest_framework.templates.rest_framework.horizontal' is explicitly added
[2024-11-23T00:18:17.938Z] to the `packages` configuration field.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.938Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.938Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] If you don't want 'rest_framework.templates.rest_framework.horizontal' to be distributed and are
[2024-11-23T00:18:17.938Z] already explicitly excluding 'rest_framework.templates.rest_framework.horizontal' via
[2024-11-23T00:18:17.938Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.938Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.938Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.938Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.938Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.938Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z] check.warn(importable)
[2024-11-23T00:18:17.938Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.inline' is absent from the `packages` configuration.
[2024-11-23T00:18:17.938Z] !!
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] ********************************************************************************
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] # Package would be ignored #
[2024-11-23T00:18:17.938Z] ############################
[2024-11-23T00:18:17.938Z] Python recognizes 'rest_framework.templates.rest_framework.inline' as an importable package[^1],
[2024-11-23T00:18:17.938Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.938Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.938Z] package, please make sure that 'rest_framework.templates.rest_framework.inline' is explicitly added
[2024-11-23T00:18:17.938Z] to the `packages` configuration field.
[2024-11-23T00:18:17.938Z]
[2024-11-23T00:18:17.939Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.939Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.939Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] If you don't want 'rest_framework.templates.rest_framework.inline' to be distributed and are
[2024-11-23T00:18:17.939Z] already explicitly excluding 'rest_framework.templates.rest_framework.inline' via
[2024-11-23T00:18:17.939Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.939Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.939Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.939Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.939Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.939Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.939Z] ********************************************************************************
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] !!
[2024-11-23T00:18:17.939Z] check.warn(importable)
[2024-11-23T00:18:17.939Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.pagination' is absent from the `packages` configuration.
[2024-11-23T00:18:17.939Z] !!
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] ********************************************************************************
[2024-11-23T00:18:17.939Z] ############################
[2024-11-23T00:18:17.939Z] # Package would be ignored #
[2024-11-23T00:18:17.939Z] ############################
[2024-11-23T00:18:17.939Z] Python recognizes 'rest_framework.templates.rest_framework.pagination' as an importable package[^1],
[2024-11-23T00:18:17.939Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.939Z] package, please make sure that 'rest_framework.templates.rest_framework.pagination' is explicitly added
[2024-11-23T00:18:17.939Z] to the `packages` configuration field.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.939Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.939Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] If you don't want 'rest_framework.templates.rest_framework.pagination' to be distributed and are
[2024-11-23T00:18:17.939Z] already explicitly excluding 'rest_framework.templates.rest_framework.pagination' via
[2024-11-23T00:18:17.939Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.939Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.939Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.939Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.939Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.939Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.939Z] ********************************************************************************
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] !!
[2024-11-23T00:18:17.939Z] check.warn(importable)
[2024-11-23T00:18:17.939Z] /usr/lib/python3.13/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'rest_framework.templates.rest_framework.vertical' is absent from the `packages` configuration.
[2024-11-23T00:18:17.939Z] !!
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] ********************************************************************************
[2024-11-23T00:18:17.939Z] ############################
[2024-11-23T00:18:17.939Z] # Package would be ignored #
[2024-11-23T00:18:17.939Z] ############################
[2024-11-23T00:18:17.939Z] Python recognizes 'rest_framework.templates.rest_framework.vertical' as an importable package[^1],
[2024-11-23T00:18:17.939Z] but it is absent from setuptools' `packages` configuration.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] This leads to an ambiguous overall configuration. If you want to distribute this
[2024-11-23T00:18:17.939Z] package, please make sure that 'rest_framework.templates.rest_framework.vertical' is explicitly added
[2024-11-23T00:18:17.939Z] to the `packages` configuration field.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] Alternatively, you can also rely on setuptools' discovery methods
[2024-11-23T00:18:17.939Z] (for example by using `find_namespace_packages(...)`/`find_namespace:`
[2024-11-23T00:18:17.939Z] instead of `find_packages(...)`/`find:`).
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] You can read more about "package discovery" on setuptools documentation page:
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] If you don't want 'rest_framework.templates.rest_framework.vertical' to be distributed and are
[2024-11-23T00:18:17.939Z] already explicitly excluding 'rest_framework.templates.rest_framework.vertical' via
[2024-11-23T00:18:17.939Z] `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
[2024-11-23T00:18:17.939Z] you can try to use `exclude_package_data`, or `include-package-data=False` in
[2024-11-23T00:18:17.939Z] combination with a more fine grained `package-data` configuration.
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] You can read more about "package data files" on setuptools documentation page:
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] [^1]: For Python, any directory (with suitable naming) can be imported,
[2024-11-23T00:18:17.939Z] even if it does not contain any `.py` files.
[2024-11-23T00:18:17.939Z] On the other hand, currently there is no concept of package data
[2024-11-23T00:18:17.939Z] directory, all directories are treated like packages.
[2024-11-23T00:18:17.939Z] ********************************************************************************
[2024-11-23T00:18:17.939Z]
[2024-11-23T00:18:17.939Z] !!
[2024-11-23T00:18:17.939Z] check.warn(importable)
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/ach/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/ar/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/az/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/az/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/az/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/be/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/be/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/be/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/bg/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/ca/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/ca_ES/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/cs/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/da/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/da/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/da/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/de/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/de/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/de/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/el/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/el/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/el/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/el_GR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/en/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/en/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/en_AU/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/en_CA/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/en_US/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/es/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/es/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/es/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/et/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/et/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/et/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/fa/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/fa_IR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/fi/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/fr/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/fr_CA/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/gl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/gl_ES/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/he_IL/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/hu/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T00:18:17.939Z] copying rest_framework/locale/hy/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T00:18:17.939Z] creating build/lib/rest_framework/locale/id/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/id/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/id/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/it/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/it/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/it/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/ja/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/ko_KR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/lt/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/lv/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/mk/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/nb/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/ne_NP/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/nl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/nn/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/no/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/no/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/no/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/pl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/pt/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/pt_BR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/pt_PT/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/ro/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/ru/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/ru_RU/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/sk/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/sl/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/sv/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/th/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/th/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/th/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/tr/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/tr_TR/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/uk/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/vi/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/zh_CN/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/zh_Hans/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/zh_Hant/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T00:18:17.940Z] copying rest_framework/locale/zh_TW/LC_MESSAGES/django.mo -> build/lib/rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/bootstrap-theme.min.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/bootstrap-theme.min.css.map -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/bootstrap-tweaks.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/bootstrap.min.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/bootstrap.min.css.map -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/default.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/font-awesome-4.0.3.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/css/prettify.css -> build/lib/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/css/base.css -> build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/css/highlight.css -> build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/css/jquery.json-view.min.css -> build/lib/rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/docs/img
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/img/favicon.ico -> build/lib/rest_framework/static/rest_framework/docs/img
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/img/grid.png -> build/lib/rest_framework/static/rest_framework/docs/img
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/js/api.js -> build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/js/highlight.pack.js -> build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/docs/js/jquery.json-view.min.js -> build/lib/rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.eot -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.svg -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.ttf -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/fontawesome-webfont.woff -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.eot -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.svg -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.ttf -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff2 -> build/lib/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/img/glyphicons-halflings-white.png -> build/lib/rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/img/glyphicons-halflings.png -> build/lib/rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/img/grid.png -> build/lib/rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/ajax-form.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/bootstrap.min.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/coreapi-0.1.1.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/csrf.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/default.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/jquery-3.7.1.min.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/load-ajax-form.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] copying rest_framework/static/rest_framework/js/prettify-min.js -> build/lib/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/admin.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/api.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/base.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/login.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/login_base.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/raw_data_form.html -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/schema.js -> build/lib/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/admin/detail.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/admin/dict_value.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/admin/list.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/admin/list_value.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/admin/simple_list_value.html -> build/lib/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/document.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/error.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/index.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/interact.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/link.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/sidebar.html -> build/lib/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/auth/basic.html -> build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/auth/session.html -> build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/auth/token.html -> build/lib/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.940Z] creating build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/langs/javascript-intro.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/langs/javascript.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.940Z] copying rest_framework/templates/rest_framework/docs/langs/python-intro.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/docs/langs/python.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/docs/langs/shell-intro.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/docs/langs/shell.html -> build/lib/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.941Z] creating build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/filters/base.html -> build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/filters/ordering.html -> build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/filters/search.html -> build/lib/rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.941Z] creating build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/checkbox.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/checkbox_multiple.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/dict_field.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/fieldset.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/form.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/input.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/list_field.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/list_fieldset.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/radio.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/select.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/select_multiple.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/horizontal/textarea.html -> build/lib/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.941Z] creating build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/checkbox.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/checkbox_multiple.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/dict_field.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/fieldset.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/form.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/input.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/list_field.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/list_fieldset.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/radio.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/select.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/select_multiple.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/inline/textarea.html -> build/lib/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.941Z] creating build/lib/rest_framework/templates/rest_framework/pagination
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/pagination/numbers.html -> build/lib/rest_framework/templates/rest_framework/pagination
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/pagination/previous_and_next.html -> build/lib/rest_framework/templates/rest_framework/pagination
[2024-11-23T00:18:17.941Z] creating build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/checkbox.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/checkbox_multiple.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/dict_field.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/fieldset.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/form.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/input.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/list_field.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/list_fieldset.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/radio.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/select.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/select_multiple.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] copying rest_framework/templates/rest_framework/vertical/textarea.html -> build/lib/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.941Z] installing to build/bdist.linux-x86_64/wheel
[2024-11-23T00:18:17.941Z] running install
[2024-11-23T00:18:17.941Z] running install_lib
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/encoders.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/urls.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/formatting.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/field_mapping.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/breadcrumbs.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/json.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/timezone.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/mediatypes.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/serializer_helpers.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/model_meta.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/html.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/humanize_datetime.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/utils/representation.py -> build/bdist.linux-x86_64/wheel/./rest_framework/utils
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/models.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/apps.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/views.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/serializers.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken/management
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/management/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/management
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken/management/commands
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/management/commands/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/management/commands
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/management/commands/drf_create_token.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/management/commands
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/authtoken/migrations
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/migrations/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/migrations/0001_initial.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/migrations/0002_auto_20160226_1747.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/migrations/0003_tokenproxy.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken/migrations
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authtoken/admin.py -> build/bdist.linux-x86_64/wheel/./rest_framework/authtoken
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/permissions.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/routers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/urls.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/apps.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/negotiation.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/parsers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/relations.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/metadata.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/views.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/versioning.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/serializers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/authentication.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/management
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/management/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/management
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/management/commands
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/management/commands/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/management/commands
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/management/commands/generateschema.py -> build/bdist.linux-x86_64/wheel/./rest_framework/management/commands
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/status.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/filters.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/fields.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/test.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/documentation.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/exceptions.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/locale/fa/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/fa/LC_MESSAGES
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/locale/pt/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/pt/LC_MESSAGES
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/uk
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T00:18:17.941Z] copying build/lib/rest_framework/locale/uk/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/uk/LC_MESSAGES
[2024-11-23T00:18:17.941Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_US
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/en_US/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/en_US/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr_TR
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/tr_TR/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/tr_TR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/cs
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/cs/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/cs/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pl
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/pl/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/pl/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nl
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/nl/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/nl/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_CA
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/en_CA/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/en_CA/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru_RU
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ru_RU/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ru_RU/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fi
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/fi/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/fi/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/bg
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/bg/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/bg/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_BR
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/pt_BR/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/pt_BR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nb
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/nb/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/nb/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sv
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/sv/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/sv/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/id
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/id/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/id/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/id/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/gl/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/gl/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/de
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/de/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/de/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/de/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/tr/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/tr/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/no
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/no/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/no/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/no/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/az
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/az/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/az/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/az/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_TW
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/zh_TW/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/zh_TW/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/fr/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/fr/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/da
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/da/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/da/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/da/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el_GR
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/el_GR/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/el_GR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lt
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/lt/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/lt/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/it
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/it/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/it/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/it/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl_ES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/gl_ES/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/gl_ES/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/he_IL
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/he_IL/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/he_IL/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/th
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/th/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/th/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/th/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa_IR
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/fa_IR/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/fa_IR/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lv
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/lv/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/lv/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hy
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/hy/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/hy/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/et
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/et/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/et/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/et/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_AU
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/en_AU/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/en_AU/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ar
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ar/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ar/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/vi
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/vi/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/vi/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca_ES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ca_ES/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ca_ES/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ach
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ach/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ach/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nn
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/nn/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/nn/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ro
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ro/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ro/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ca/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ca/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_PT
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/pt_PT/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/pt_PT/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/mk
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/mk/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/mk/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/ru/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ru/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/en/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/en/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/en/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/el/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/el/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/el/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hant
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/zh_Hant/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/zh_Hant/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_CN
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T00:18:17.942Z] copying build/lib/rest_framework/locale/zh_CN/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/zh_CN/LC_MESSAGES
[2024-11-23T00:18:17.942Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sk
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/sk/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/sk/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/be
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/be/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/be/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/be/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ja
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/ja/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ja/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr_CA
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/fr_CA/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/fr_CA/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sl
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/sl/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/sl/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ne_NP
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/ne_NP/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ne_NP/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ko_KR
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/ko_KR/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/ko_KR/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/es
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/es/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/es/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/es/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hans
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/zh_Hans/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/zh_Hans/LC_MESSAGES
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hu
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/locale/hu/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/wheel/./rest_framework/locale/hu/LC_MESSAGES
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/compat.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/renderers.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/throttling.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templatetags
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templatetags/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/templatetags
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templatetags/rest_framework.py -> build/bdist.linux-x86_64/wheel/./rest_framework/templatetags
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/pagination.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/settings.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/__init__.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/views.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/generators.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/coreapi.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/utils.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/inspectors.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/schemas/openapi.py -> build/bdist.linux-x86_64/wheel/./rest_framework/schemas
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/response.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/validators.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/decorators.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/admin/dict_value.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/admin/simple_list_value.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/admin/list.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/admin/detail.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/admin/list_value.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/admin
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/api.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/pagination
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/pagination/previous_and_next.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/pagination
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/pagination/numbers.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/pagination
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/base.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/login_base.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/input.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/dict_field.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/list_field.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/list_fieldset.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/fieldset.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/textarea.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/form.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/radio.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/select_multiple.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/checkbox_multiple.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/select.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/horizontal/checkbox.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/horizontal
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/document.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/langs/javascript.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/langs/python-intro.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/langs/shell.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/langs/shell-intro.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/langs/python.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/langs/javascript-intro.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/langs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/index.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/auth/basic.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/auth/session.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/auth/token.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs/auth
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/interact.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/sidebar.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/error.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/docs/link.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/docs
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/raw_data_form.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/admin.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.943Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/vertical/input.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/vertical/dict_field.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/vertical/list_field.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/vertical/list_fieldset.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/vertical/fieldset.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.943Z] copying build/lib/rest_framework/templates/rest_framework/vertical/textarea.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/vertical/form.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/vertical/radio.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/vertical/select_multiple.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/vertical/checkbox_multiple.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/vertical/select.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/vertical/checkbox.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/vertical
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/schema.js -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/login.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/input.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/dict_field.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/list_field.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/list_fieldset.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/fieldset.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/textarea.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/form.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/radio.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/select_multiple.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/checkbox_multiple.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/select.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/inline/checkbox.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/inline
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/filters/search.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/filters/base.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/templates/rest_framework/filters/ordering.html -> build/bdist.linux-x86_64/wheel/./rest_framework/templates/rest_framework/filters
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/viewsets.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/request.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/default.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/bootstrap-theme.min.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/font-awesome-4.0.3.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/bootstrap-theme.min.css.map -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/prettify.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/bootstrap-tweaks.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/bootstrap.min.css.map -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/css/bootstrap.min.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/css
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/img/grid.png -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/img/glyphicons-halflings.png -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/img/glyphicons-halflings-white.png -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/img
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/css/jquery.json-view.min.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/css/base.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/css/highlight.css -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/css
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs/img
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/img/grid.png -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/img
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/img/favicon.ico -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/img
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/js/api.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/js/jquery.json-view.min.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/docs/js/highlight.pack.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/docs/js
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/fontawesome-webfont.woff -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/fontawesome-webfont.eot -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.eot -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.svg -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/fontawesome-webfont.ttf -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.ttf -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff2 -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/fonts/fontawesome-webfont.svg -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/fonts
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/jquery-3.7.1.min.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/coreapi-0.1.1.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/prettify-min.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/csrf.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/default.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/ajax-form.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/bootstrap.min.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/static/rest_framework/js/load-ajax-form.js -> build/bdist.linux-x86_64/wheel/./rest_framework/static/rest_framework/js
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/mixins.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/checks.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/urlpatterns.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/reverse.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] copying build/lib/rest_framework/generics.py -> build/bdist.linux-x86_64/wheel/./rest_framework
[2024-11-23T00:18:17.944Z] running install_egg_info
[2024-11-23T00:18:17.944Z] Copying djangorestframework.egg-info to build/bdist.linux-x86_64/wheel/./djangorestframework-3.15.2-py3.13.egg-info
[2024-11-23T00:18:17.944Z] running install_scripts
[2024-11-23T00:18:17.944Z] creating build/bdist.linux-x86_64/wheel/djangorestframework-3.15.2.dist-info/WHEEL
[2024-11-23T00:18:17.944Z] creating '/build/python-django-rest-framework/src/django-rest-framework-3.15.2/dist/.tmp-omgh5z4n/djangorestframework-3.15.2-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
[2024-11-23T00:18:17.944Z] adding 'rest_framework/__init__.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/apps.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authentication.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/checks.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/compat.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/decorators.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/documentation.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/exceptions.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/fields.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/filters.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/generics.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/metadata.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/mixins.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/negotiation.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/pagination.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/parsers.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/permissions.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/relations.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/renderers.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/request.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/response.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/reverse.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/routers.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/serializers.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/settings.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/status.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/test.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/throttling.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/urlpatterns.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/urls.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/validators.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/versioning.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/views.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/viewsets.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/__init__.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/admin.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/apps.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/models.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/serializers.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/views.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/management/__init__.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/management/commands/__init__.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/management/commands/drf_create_token.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/migrations/0001_initial.py'
[2024-11-23T00:18:17.944Z] adding 'rest_framework/authtoken/migrations/0002_auto_20160226_1747.py'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/authtoken/migrations/0003_tokenproxy.py'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/authtoken/migrations/__init__.py'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/ach/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/ar/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/az/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/be/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/bg/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/ca/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/ca_ES/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/cs/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/da/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/de/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/el/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/el_GR/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/en/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/en_AU/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/en_CA/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/en_US/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/es/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/et/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/fa/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/fa_IR/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/fi/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/fr/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/fr_CA/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/gl/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/gl_ES/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/he_IL/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/hu/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/hy/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/id/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/it/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/ja/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/ko_KR/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/lt/LC_MESSAGES/django.mo'
[2024-11-23T00:18:17.945Z] adding 'rest_framework/locale/lv/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/mk/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/nb/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/ne_NP/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/nl/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/nn/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/no/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/pl/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/pt/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/pt_BR/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/pt_PT/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/ro/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/ru/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/ru_RU/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/sk/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/sl/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/sv/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/th/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/tr/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/tr_TR/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/uk/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/vi/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/zh_CN/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/zh_Hans/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/zh_Hant/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/locale/zh_TW/LC_MESSAGES/django.mo'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/management/__init__.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/management/commands/__init__.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/management/commands/generateschema.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/__init__.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/coreapi.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/generators.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/inspectors.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/openapi.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/utils.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/schemas/views.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/bootstrap-theme.min.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/bootstrap-theme.min.css.map'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/bootstrap-tweaks.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/bootstrap.min.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/bootstrap.min.css.map'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/default.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/font-awesome-4.0.3.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/css/prettify.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/css/base.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/css/highlight.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/css/jquery.json-view.min.css'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/img/favicon.ico'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/img/grid.png'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/js/api.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/js/highlight.pack.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/docs/js/jquery.json-view.min.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.eot'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.svg'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.ttf'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/fontawesome-webfont.woff'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.eot'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.svg'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.ttf'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/fonts/glyphicons-halflings-regular.woff2'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/img/glyphicons-halflings-white.png'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/img/glyphicons-halflings.png'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/img/grid.png'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/ajax-form.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/bootstrap.min.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/coreapi-0.1.1.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/csrf.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/default.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/jquery-3.7.1.min.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/load-ajax-form.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/static/rest_framework/js/prettify-min.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/admin.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/api.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/base.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/login.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/login_base.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/raw_data_form.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/schema.js'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/admin/detail.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/admin/dict_value.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/admin/list.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/admin/list_value.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/admin/simple_list_value.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/document.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/error.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/index.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/interact.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/link.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/sidebar.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/auth/basic.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/auth/session.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/auth/token.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/langs/javascript-intro.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/langs/javascript.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/langs/python-intro.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/langs/python.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/langs/shell-intro.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/docs/langs/shell.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/filters/base.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/filters/ordering.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/filters/search.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/checkbox.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/checkbox_multiple.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/dict_field.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/fieldset.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/form.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/input.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/list_field.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/list_fieldset.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/radio.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/select.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/select_multiple.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/horizontal/textarea.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/checkbox.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/checkbox_multiple.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/dict_field.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/fieldset.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/form.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/input.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/list_field.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/list_fieldset.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/radio.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/select.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/select_multiple.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/inline/textarea.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/pagination/numbers.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/pagination/previous_and_next.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/checkbox.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/checkbox_multiple.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/dict_field.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/fieldset.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/form.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/input.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/list_field.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/list_fieldset.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/radio.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/select.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/select_multiple.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templates/rest_framework/vertical/textarea.html'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templatetags/__init__.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/templatetags/rest_framework.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/__init__.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/breadcrumbs.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/encoders.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/field_mapping.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/formatting.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/html.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/humanize_datetime.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/json.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/mediatypes.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/model_meta.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/representation.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/serializer_helpers.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/timezone.py'
[2024-11-23T00:18:18.195Z] adding 'rest_framework/utils/urls.py'
[2024-11-23T00:18:18.195Z] adding 'djangorestframework-3.15.2.dist-info/LICENSE.md'
[2024-11-23T00:18:18.195Z] adding 'djangorestframework-3.15.2.dist-info/METADATA'
[2024-11-23T00:18:18.195Z] adding 'djangorestframework-3.15.2.dist-info/WHEEL'
[2024-11-23T00:18:18.195Z] adding 'djangorestframework-3.15.2.dist-info/top_level.txt'
[2024-11-23T00:18:18.195Z] adding 'djangorestframework-3.15.2.dist-info/RECORD'
[2024-11-23T00:18:18.195Z] removing build/bdist.linux-x86_64/wheel
[2024-11-23T00:18:18.195Z] Successfully built djangorestframework-3.15.2-py3-none-any.whl
[2024-11-23T00:18:18.195Z] ==> Starting check()...
[2024-11-23T00:18:18.746Z] ============================= test session starts ==============================
[2024-11-23T00:18:18.746Z] platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-23T00:18:18.746Z] cachedir: .pytest_cache
[2024-11-23T00:18:18.746Z] rootdir: /build/python-django-rest-framework/src/django-rest-framework-3.15.2
[2024-11-23T00:18:18.746Z] configfile: setup.cfg
[2024-11-23T00:18:18.746Z] testpaths: tests
[2024-11-23T00:18:21.973Z] collecting ... collected 1544 items / 1 deselected / 1543 selected
[2024-11-23T00:18:21.973Z]
[2024-11-23T00:18:21.973Z] tests/authentication/test_authentication.py::BasicAuthTests::test_decoding_of_utf8_credentials FAILED [ 0%]
[2024-11-23T00:18:21.973Z] tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_are_missing FAILED [ 0%]
[2024-11-23T00:18:22.224Z] tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_contain_spaces FAILED [ 0%]
[2024-11-23T00:18:22.474Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_failing_basic_auth FAILED [ 0%]
[2024-11-23T00:18:22.724Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_passing_basic_auth FAILED [ 0%]
[2024-11-23T00:18:22.974Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_failing_basic_auth FAILED [ 0%]
[2024-11-23T00:18:23.225Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_passing_basic_auth FAILED [ 0%]
[2024-11-23T00:18:23.225Z] tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_without_password_failing_basic_auth FAILED [ 0%]
[2024-11-23T00:18:23.775Z] tests/authentication/test_authentication.py::BasicAuthTests::test_regression_handle_bad_base64_basic_auth_header FAILED [ 0%]
[2024-11-23T00:18:23.775Z] tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get FAILED [ 0%]
[2024-11-23T00:18:24.025Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing FAILED [ 0%]
[2024-11-23T00:18:24.276Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing_csrf FAILED [ 0%]
[2024-11-23T00:18:24.526Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing FAILED [ 0%]
[2024-11-23T00:18:24.776Z] tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing_csrf FAILED [ 0%]
[2024-11-23T00:18:25.026Z] tests/authentication/test_authentication.py::SessionAuthTests::test_put_form_session_auth_passing FAILED [ 0%]
[2024-11-23T00:18:25.277Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 1%]
[2024-11-23T00:18:25.527Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 1%]
[2024-11-23T00:18:25.777Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 1%]
[2024-11-23T00:18:25.777Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 1%]
[2024-11-23T00:18:26.027Z] tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 1%]
[2024-11-23T00:18:26.278Z] tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_accessible_as_classmethod FAILED [ 1%]
[2024-11-23T00:18:26.528Z] tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_returns_string FAILED [ 1%]
[2024-11-23T00:18:26.778Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_failing_token_auth FAILED [ 1%]
[2024-11-23T00:18:27.028Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_passing_token_auth FAILED [ 1%]
[2024-11-23T00:18:27.279Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_failing_token_auth FAILED [ 1%]
[2024-11-23T00:18:27.529Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_makes_one_db_query FAILED [ 1%]
[2024-11-23T00:18:27.779Z] tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_passing_token_auth FAILED [ 1%]
[2024-11-23T00:18:28.029Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_has_auto_assigned_key_if_none_provided FAILED [ 1%]
[2024-11-23T00:18:28.280Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_form FAILED [ 1%]
[2024-11-23T00:18:28.530Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json FAILED [ 1%]
[2024-11-23T00:18:28.780Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_bad_creds FAILED [ 2%]
[2024-11-23T00:18:29.031Z] tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_missing_fields FAILED [ 2%]
[2024-11-23T00:18:29.281Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 2%]
[2024-11-23T00:18:29.281Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 2%]
[2024-11-23T00:18:29.531Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 2%]
[2024-11-23T00:18:29.782Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 2%]
[2024-11-23T00:18:30.032Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 2%]
[2024-11-23T00:18:30.282Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_failing_token_auth FAILED [ 2%]
[2024-11-23T00:18:30.533Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_passing_token_auth FAILED [ 2%]
[2024-11-23T00:18:30.784Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_failing_token_auth FAILED [ 2%]
[2024-11-23T00:18:31.035Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_makes_one_db_query FAILED [ 2%]
[2024-11-23T00:18:31.035Z] tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_passing_token_auth FAILED [ 2%]
[2024-11-23T00:18:31.285Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_authentication_if_user_is_not_active FAILED [ 2%]
[2024-11-23T00:18:31.535Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_invalid_token_auth FAILED [ 2%]
[2024-11-23T00:18:31.786Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth FAILED [ 2%]
[2024-11-23T00:18:32.036Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_contains_spaces FAILED [ 2%]
[2024-11-23T00:18:32.286Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_is_missing FAILED [ 3%]
[2024-11-23T00:18:32.536Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_failing_token_auth FAILED [ 3%]
[2024-11-23T00:18:32.787Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_passing_token_auth FAILED [ 3%]
[2024-11-23T00:18:33.037Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_failing_token_auth FAILED [ 3%]
[2024-11-23T00:18:33.287Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_makes_one_db_query FAILED [ 3%]
[2024-11-23T00:18:33.537Z] tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_passing_token_auth FAILED [ 3%]
[2024-11-23T00:18:33.537Z] tests/authentication/test_authentication.py::IncorrectCredentialsTests::test_incorrect_credentials PASSED [ 3%]
[2024-11-23T00:18:33.537Z] tests/authentication/test_authentication.py::FailingAuthAccessedInRenderer::test_failing_auth_accessed_in_renderer PASSED [ 3%]
[2024-11-23T00:18:33.537Z] tests/authentication/test_authentication.py::NoAuthenticationClassesTests::test_permission_message_with_no_authentication_classes PASSED [ 3%]
[2024-11-23T00:18:33.537Z] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_base_authentication_abstract_method PASSED [ 3%]
[2024-11-23T00:18:33.537Z] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_active PASSED [ 3%]
[2024-11-23T00:18:33.787Z] tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_found FAILED [ 3%]
[2024-11-23T00:18:33.787Z] tests/authentication/test_authentication.py::RemoteUserAuthenticationUnitTests::test_remote_user_works FAILED [ 3%]
[2024-11-23T00:18:34.037Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_raises_typeerror_when_anonymous_user_in_queryset_filter FAILED [ 3%]
[2024-11-23T00:18:34.037Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_raises_typeerror_when_anonymous_user_in_queryset_filter ERROR [ 3%]
[2024-11-23T00:18:34.288Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user FAILED [ 3%]
[2024-11-23T00:18:34.288Z] tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user ERROR [ 3%]
[2024-11-23T00:18:34.538Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_dropdown_contains_logout_form FAILED [ 4%]
[2024-11-23T00:18:34.788Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_login_shown_when_logged_out FAILED [ 4%]
[2024-11-23T00:18:35.038Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_logout_shown_when_logged_in FAILED [ 4%]
[2024-11-23T00:18:35.288Z] tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_name_shown_when_logged_in FAILED [ 4%]
[2024-11-23T00:18:35.538Z] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_in FAILED [ 4%]
[2024-11-23T00:18:35.538Z] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_out FAILED [ 4%]
[2024-11-23T00:18:35.788Z] tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_name_shown_when_logged_in FAILED [ 4%]
[2024-11-23T00:18:35.789Z] tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login FAILED [ 4%]
[2024-11-23T00:18:35.789Z] tests/browsable_api/test_form_rendering.py::TestPostingListData::test_browsable_api PASSED [ 4%]
[2024-11-23T00:18:35.789Z] tests/browsable_api/test_form_rendering.py::TestPostingListData::test_json_response PASSED [ 4%]
[2024-11-23T00:18:36.039Z] tests/browsable_api/test_form_rendering.py::TestManyPostView::test_post_many_post_view FAILED [ 4%]
[2024-11-23T00:18:36.289Z] tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_fk FAILED [ 4%]
[2024-11-23T00:18:36.539Z] tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_relation FAILED [ 4%]
[2024-11-23T00:18:36.539Z] tests/importable/test_installed.py::test_installed PASSED [ 4%]
[2024-11-23T00:18:36.539Z] tests/importable/test_installed.py::test_compat PASSED [ 4%]
[2024-11-23T00:18:36.539Z] tests/importable/test_installed.py::test_serializer_fields_initialization PASSED [ 4%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestRouterGeneratedSchema::test_anonymous_request SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestRouterGeneratedSchema::test_authenticated_request SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGenerator::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorDjango2::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorNotAtRoot::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithMethodLimitedViewSets::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithRestrictedViewSets::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithForeignKey::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorWithManyToMany::test_schema_for_regular_views SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestSchemaGeneratorActionKeysViewSets::test_action_not_coerced_for_get_and_head SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::Test4605Regression::test_4605_regression SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_apiview_schema_descriptor PASSED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_field_to_schema SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_get_link_requires_instance PASSED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_get_manual_fields SKIPPED [ 5%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_set_custom_inspector_class_on_view PASSED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_set_custom_inspector_class_via_settings PASSED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_update_fields SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_view_with_manual_schema SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_viewset_action_with_null_schema SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestAutoSchema::test_viewset_action_with_schema SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::test_docstring_is_not_stripped_by_get_description PASSED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_endpoint_enumerator_excludes_correctly SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_schema_generator_excludes_correctly SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::SchemaGenerationExclusionTests::test_should_include_endpoint_excludes_correctly SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_from_router SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_manually_routing_generic_view SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_manually_routing_nested_routes SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_url_under_same_key_not_replaced SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::TestURLNamingCollisions::test_url_under_same_key_not_replaced_another SKIPPED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::test_is_list_view_recognises_retrieve_view_subclasses PASSED [ 6%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::test_head_and_options_methods_are_excluded PASSED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::test_schema_handles_exception SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_coreapi.py::test_coreapi_deprecation SKIPPED (coreapi
[2024-11-23T00:18:36.539Z] is not installed) [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_get_schema_view.py::GetSchemaViewTests::test_coreapi SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_get_schema_view.py::GetSchemaViewTests::test_openapi PASSED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_accepts_custom_schema_generator SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_command_detects_schema_generation_mode SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_coreapi_renders_default_schema_with_custom_title_url_and_description SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_coreapi_renders_openapi_json_schema SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_corejson_schema SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_default_schema_with_custom_title_url_and_description SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_renders_openapi_json_schema SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_managementcommand.py::GenerateSchemaTests::test_writes_schema_to_file_on_parameter SKIPPED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestBasics::test_filters PASSED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestBasics::test_pagination PASSED [ 7%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestFieldMapping::test_boolean_default_field PASSED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestFieldMapping::test_custom_field_name PASSED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestFieldMapping::test_lazy_string_field PASSED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestFieldMapping::test_list_field_mapping PASSED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestFieldMapping::test_nullable_fields PASSED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestFieldMapping::test_primary_key_related_field PASSED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_auto_generated_apiview_tags SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_delete_response_body_generation SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_different_request_response_objects SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_duplicate_operation_id SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_empty_required SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_empty_required_with_patch_method SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_invalid_serializer_class_name SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_list_response_body_generation SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_openapi_yaml_rendering_without_aliases SKIPPED [ 8%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_openapi_yaml_safestring_render SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_custom_name SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_custom_operation_id_base SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_generation SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_override_base SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_override_get SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_plural SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_operation_id_viewset SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_overridden_get_tags_method SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_overridden_tags SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_paginated_list_response_body_generation SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_parser_mapping SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_path_with_id_parameter SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_path_without_parameters SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_renderer_mapping SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_repeat_operation_ids SKIPPED [ 9%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_request_body SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_generation SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_nested_serializer SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_response_body_partial_serializer SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_retrieve_response_body_generation SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_callable_default SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_datefield SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_filefield SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_hstorefield SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestOperationIntrospection::test_serializer_validators SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_authtoken_serializer SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_component_name SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_component_should_not_be_generated_for_delete_method SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_duplicate_component_name SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_mount_url_prefixed_to_paths SKIPPED [ 10%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_override_settings SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_paths_construction SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_prefixed_paths_construction SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_construction SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_information SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_information_empty SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_timedelta_to_yaml_with_validator SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_to_json SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_rendering_to_yaml SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_schema_with_no_paths SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/schemas/test_openapi.py::TestGenerator::test_serializer_model SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_api_client SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_body_params SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_download_response SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_form_params SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding SKIPPED [ 11%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_in_body SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_multiple_values SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_no_file SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_multipart_encoding_string_file_content SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_path_params SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_query_params SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_query_params_with_multiple_values SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_raw_upload SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_raw_upload_explicit_content_type SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_raw_upload_string_file_content SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_session_headers SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_text_response SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding_in_body SKIPPED [ 12%]
[2024-11-23T00:18:36.539Z] tests/test_api_client.py::APIClientTests::test_urlencoded_encoding_multiple_values SKIPPED [ 12%]
[2024-11-23T00:18:37.090Z] tests/test_atomic_requests.py::DBTransactionTests::test_no_exception_commit_transaction FAILED [ 13%]
[2024-11-23T00:18:37.090Z] tests/test_atomic_requests.py::DBTransactionErrorTests::test_generic_exception_delegate_transaction_management FAILED [ 13%]
[2024-11-23T00:18:37.340Z] tests/test_atomic_requests.py::DBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED [ 13%]
[2024-11-23T00:18:37.340Z] tests/test_atomic_requests.py::MultiDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction FAILED [ 13%]
[2024-11-23T00:18:37.590Z] tests/test_atomic_requests.py::NonAtomicDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction_non_atomic_view FAILED [ 13%]
[2024-11-23T00:18:37.590Z] tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps FAILED [ 13%]
[2024-11-23T00:18:37.840Z] tests/test_authtoken.py::AuthTokenTests::test_model_admin_displayed_fields FAILED [ 13%]
[2024-11-23T00:18:38.090Z] tests/test_authtoken.py::AuthTokenTests::test_token_string_representation FAILED [ 13%]
[2024-11-23T00:18:38.340Z] tests/test_authtoken.py::AuthTokenTests::test_validate_raise_error_if_no_credentials_provided FAILED [ 13%]
[2024-11-23T00:18:38.591Z] tests/test_authtoken.py::AuthTokenTests::test_whitespace_in_password FAILED [ 13%]
[2024-11-23T00:18:38.841Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token FAILED [ 13%]
[2024-11-23T00:18:38.841Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token_invalid_user FAILED [ 13%]
[2024-11-23T00:18:39.091Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_do_not_reset_user_token FAILED [ 13%]
[2024-11-23T00:18:39.341Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_output FAILED [ 13%]
[2024-11-23T00:18:39.591Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_raising_error_for_invalid_user FAILED [ 13%]
[2024-11-23T00:18:39.841Z] tests/test_authtoken.py::AuthTokenCommandTests::test_command_reset_user_token FAILED [ 13%]
[2024-11-23T00:18:39.841Z] tests/test_bound_fields.py::TestSimpleBoundField::test_empty_bound_field PASSED [ 14%]
[2024-11-23T00:18:39.841Z] tests/test_bound_fields.py::TestSimpleBoundField::test_populated_bound_field PASSED [ 14%]
[2024-11-23T00:18:39.841Z] tests/test_bound_fields.py::TestSimpleBoundField::test_error_bound_field PASSED [ 14%]
[2024-11-23T00:18:39.841Z] tests/test_bound_fields.py::TestSimpleBoundField::test_delete_field PASSED [ 14%]
[2024-11-23T00:18:39.841Z] tests/test_bound_fields.py::TestSimpleBoundField::test_as_form_fields PASSED [ 14%]
[2024-11-23T00:18:39.841Z] tests/test_bound_fields.py::TestSimpleBoundField::test_rendering_boolean_field PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_bound_fields.py::TestNestedBoundField::test_nested_empty_bound_field PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_bound_fields.py::TestNestedBoundField::test_as_form_fields PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_bound_fields.py::TestNestedBoundField::test_rendering_nested_fields_with_none_value PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_bound_fields.py::TestNestedBoundField::test_rendering_nested_fields_with_not_mappable_value PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_bound_fields.py::TestJSONBoundField::test_as_form_fields PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_api_view_incorrect PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_api_view_incorrect_arguments PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_authentication_classes PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_calling_method PASSED [ 14%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_calling_patch_method PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_calling_put_method PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_parser_classes PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_permission_classes PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_renderer_classes PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_schema PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::DecoratorTestCase::test_throttle_classes PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_defaults PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_detail_required PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_already_mapped PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_http_method PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_http_methods PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_method_mapping_overwrite PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_decorators.py::ActionDecoratorTestCase::test_view_name_kwargs PASSED [ 15%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_markdown SKIPPED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_allows_empty_description PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_can_be_empty PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_can_be_promise PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_uses_description_attribute PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_description_uses_docstring PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_preferences_name_over_suffix PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_class_name PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_name_attribute PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::TestViewNamesAndDescriptions::test_view_name_uses_suffix_attribute PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_description.py::test_dedent_tabs PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_coreapi_raises_error SKIPPED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_date PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_datetime PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_decimal PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_empty_returnlist PASSED [ 16%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_object_with_tolist PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_time PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_time_tz PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_timedelta PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_encoders.py::JSONEncoderTests::test_encode_uuid PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ExceptionTestCase::test_get_error_details PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ExceptionTestCase::test_get_full_details_with_throttling PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ErrorDetailTests::test_eq PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ErrorDetailTests::test_hash PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ErrorDetailTests::test_ne PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ErrorDetailTests::test_repr PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::ErrorDetailTests::test_str PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::TranslationTests::test_message PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::test_server_error PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_exceptions.py::test_bad_request PASSED [ 17%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_method PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_function PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[True] PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[None] PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[str] PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[bytes] PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[123] PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_not_callable[1.23] PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_4602_regression PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_builtin_function PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestIsSimpleCallable::test_type_annotation PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_required PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_not_required PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_disallow_null PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_allow_null PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_disallow_blank PASSED [ 18%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_allow_blank PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmpty::test_default PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestSource::test_source PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestSource::test_redundant_source PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestSource::test_callable_source PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestSource::test_callable_source_raises PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestSource::test_builtin_callable_source_raises PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestReadOnly::test_writable_fields PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestReadOnly::test_validate_read_only PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestReadOnly::test_serialize_read_only PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestWriteOnly::test_validate_write_only PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestWriteOnly::test_serialize_write_only PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestInitial::test_initial PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestInitialWithCallable::test_initial_should_accept_callable PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestLabel::test_label PASSED [ 19%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestInvalidErrorKey::test_invalid_error_key PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_not_required PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_allow_null PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanHTMLInput::test_empty_html_checkbox_allow_null_with_default PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_with_default PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_without_default PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_without_default_not_required PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_integerfield PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_uuidfield_with_default PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_uuidfield_with_optional PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_allow_null PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_datefield_allow_null PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_allow_null_allow_blank PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_empty_html_charfield_required_false PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input PASSED [ 20%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_only_one_input PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_no_values_uses_default PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_supports_indexed_keys PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_no_values_no_default_and_not_required PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestHTMLInput::test_querydict_list_input_posts_key_but_no_values PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_provided PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_not_provided_on_update PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_callable_sets_context PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::Test5087Regression::test_parent_binding PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestTyping::test_field_is_subscriptable PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanField::test_valid_inputs PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanField::test_invalid_inputs PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanField::test_outputs PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestBooleanField::test_disallow_unhashable_collection_types PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestNullableBooleanField::test_valid_inputs PASSED [ 21%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestNullableBooleanField::test_invalid_inputs PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestNullableBooleanField::test_outputs PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestNullableBooleanField::test_disallow_unhashable_collection_types PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_valid_inputs PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_invalid_inputs PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_outputs PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_trim_whitespace_default PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_trim_whitespace_disabled PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_disallow_blank_with_trim_whitespace PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_null_bytes PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_surrogate_characters PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestCharField::test_iterable_validators PASSED [ 22%]
[2024-11-23T00:18:39.842Z] tests/test_fields.py::TestEmailField::test_valid_inputs PASSED [ 22%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestEmailField::test_invalid_inputs PASSED [ 22%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestEmailField::test_outputs PASSED [ 22%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestRegexField::test_valid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestRegexField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestRegexField::test_outputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestiCompiledRegexField::test_valid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestiCompiledRegexField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestiCompiledRegexField::test_outputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestSlugField::test_valid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestSlugField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestSlugField::test_outputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestSlugField::test_allow_unicode_true PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestURLField::test_valid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestURLField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestURLField::test_outputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestUUIDField::test_valid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestUUIDField::test_invalid_inputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestUUIDField::test_outputs PASSED [ 23%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestUUIDField::test_formats PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPAddressField::test_valid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPAddressField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPAddressField::test_outputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPv4AddressField::test_valid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPv4AddressField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPv4AddressField::test_outputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPv6AddressField::test_valid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPv6AddressField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIPv6AddressField::test_outputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFilePathField::test_valid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFilePathField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFilePathField::test_outputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIntegerField::test_valid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIntegerField::test_invalid_inputs PASSED [ 24%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestIntegerField::test_outputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxIntegerField::test_valid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxIntegerField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxIntegerField::test_outputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFloatField::test_valid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFloatField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFloatField::test_outputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxFloatField::test_valid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxFloatField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxFloatField::test_outputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestFloatFieldOverFlowError::test_overflow_error_float_field PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDecimalField::test_valid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDecimalField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDecimalField::test_outputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowNullDecimalField::test_valid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowNullDecimalField::test_invalid_inputs PASSED [ 25%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowNullDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_invalid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowNullNoStringCoercionDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxDecimalField::test_invalid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestMinMaxDecimalField::test_warning_when_not_decimal_types PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_valid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_invalid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestAllowEmptyStrDecimalFieldWithValidators::test_outputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_invalid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoMaxDigitsDecimalField::test_outputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoStringCoercionDecimalField::test_valid_inputs PASSED [ 26%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoStringCoercionDecimalField::test_invalid_inputs PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoStringCoercionDecimalField::test_outputs PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestLocalizedDecimalField::test_localize_forces_coerce_to_string PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestLocalizedDecimalField::test_to_internal_value PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestLocalizedDecimalField::test_to_representation PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestQuantizedValueForDecimal::test_int_quantized_value_for_decimal PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestQuantizedValueForDecimal::test_part_precision_string_quantized_value_for_decimal PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestQuantizedValueForDecimal::test_string_quantized_value_for_decimal PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNormalizedOutputValueDecimalField::test_non_normalize_output PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNormalizedOutputValueDecimalField::test_normalize_coeherce_to_string PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNormalizedOutputValueDecimalField::test_normalize_output PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoDecimalPlaces::test_valid_inputs PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoDecimalPlaces::test_invalid_inputs PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoDecimalPlaces::test_outputs PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestRoundingDecimalField::test_invalid_rounding PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestRoundingDecimalField::test_valid_rounding PASSED [ 27%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDateField::test_outputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomInputFormatDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomInputFormatDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomInputFormatDateField::test_outputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomOutputFormatDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomOutputFormatDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomOutputFormatDateField::test_outputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoOutputFormatDateField::test_valid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoOutputFormatDateField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoOutputFormatDateField::test_outputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDateTimeField::test_valid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDateTimeField::test_invalid_inputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestDateTimeField::test_outputs PASSED [ 28%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomInputFormatDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestCustomOutputFormatDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T00:18:40.092Z] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNoOutputFormatDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNaiveDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNaiveDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNaiveDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestTZWithDateTimeField::test_valid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestTZWithDateTimeField::test_invalid_inputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestTZWithDateTimeField::test_outputs PASSED [ 29%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestDefaultTZDateTimeField::test_current_timezone PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestDefaultTZDateTimeField::test_default_timezone PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomTimezoneForDateTimeField::test_should_render_date_time_in_default_timezone PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestPytzNaiveDayLightSavingTimeTimeZoneDateTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestPytzNaiveDayLightSavingTimeTimeZoneDateTimeField::test_outputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_outputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNaiveDayLightSavingTimeTimeZoneDateTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestTimeField::test_outputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomInputFormatTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomInputFormatTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomInputFormatTimeField::test_outputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomOutputFormatTimeField::test_valid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomOutputFormatTimeField::test_invalid_inputs PASSED [ 30%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestCustomOutputFormatTimeField::test_outputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNoOutputFormatTimeField::test_valid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNoOutputFormatTimeField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNoOutputFormatTimeField::test_outputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMinMaxDurationField::test_valid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMinMaxDurationField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMinMaxDurationField::test_outputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestDurationField::test_valid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestDurationField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestDurationField::test_outputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_valid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_invalid_inputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_outputs PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_allow_blank PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_allow_null PASSED [ 31%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_iter_options PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_edit_choices PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_enum_integer_choices PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_integer_choices PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceField::test_text_choices PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithType::test_valid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithType::test_invalid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithType::test_outputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithListChoices::test_valid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithListChoices::test_invalid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithListChoices::test_outputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_valid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_invalid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithGroupedChoices::test_outputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_valid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_invalid_inputs PASSED [ 32%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestChoiceFieldWithMixedChoices::test_outputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMultipleChoiceField::test_valid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMultipleChoiceField::test_invalid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMultipleChoiceField::test_outputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestMultipleChoiceField::test_against_partial_and_full_updates PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestEmptyMultipleChoiceField::test_valid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestEmptyMultipleChoiceField::test_invalid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestEmptyMultipleChoiceField::test_outputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestFileField::test_valid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestFileField::test_invalid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestFileField::test_outputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestFieldFieldWithName::test_valid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestFieldFieldWithName::test_invalid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestFieldFieldWithName::test_outputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestInvalidImageField::test_valid_inputs PASSED [ 33%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestInvalidImageField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestInvalidImageField::test_outputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestValidImageField::test_valid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestValidImageField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestValidImageField::test_outputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestListField::test_valid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestListField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestListField::test_outputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestListField::test_no_source_on_child PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestListField::test_collection_types_are_invalid_input PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestListField::test_constructor_misuse_raises PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNestedListField::test_valid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNestedListField::test_invalid_inputs PASSED [ 34%]
[2024-11-23T00:18:40.093Z] tests/test_fields.py::TestNestedListField::test_outputs PASSED [ 34%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_invalid_inputs FAILED [ 34%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_outputs PASSED [ 34%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_valid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestEmptyListField::test_valid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestEmptyListField::test_invalid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestEmptyListField::test_outputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestListFieldLengthLimit::test_valid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestListFieldLengthLimit::test_invalid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestListFieldLengthLimit::test_outputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestUnvalidatedListField::test_valid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestUnvalidatedListField::test_invalid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestUnvalidatedListField::test_outputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictField::test_valid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictField::test_invalid_inputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictField::test_outputs PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictField::test_no_source_on_child PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictField::test_allow_null PASSED [ 35%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictField::test_allow_empty_disallowed PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestNestedDictField::test_valid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestNestedDictField::test_invalid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestNestedDictField::test_outputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictFieldWithNullChild::test_valid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictFieldWithNullChild::test_invalid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestDictFieldWithNullChild::test_outputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestUnvalidatedDictField::test_valid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestUnvalidatedDictField::test_invalid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestUnvalidatedDictField::test_outputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestHStoreField::test_valid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestHStoreField::test_invalid_inputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestHStoreField::test_outputs PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestHStoreField::test_child_is_charfield PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestHStoreField::test_no_source_on_child PASSED [ 36%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestHStoreField::test_allow_null PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestJSONField::test_valid_inputs PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestJSONField::test_invalid_inputs PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestJSONField::test_outputs PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestJSONField::test_html_input_as_json_string PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestBinaryJSONField::test_valid_inputs PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestBinaryJSONField::test_invalid_inputs PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestBinaryJSONField::test_outputs PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestFileFieldContext::test_fully_qualified_when_request_in_context PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestFilePathFieldRequired::test_required_passed_to_both_django_file_path_field_and_base PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestSerializerMethodField::test_serializer_method_field PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestSerializerMethodField::test_redundant_method_name PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestModelField::test_max_length_init PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg[False] PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg[True] PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg_including_percent[False] PASSED [ 37%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_msg_including_percent[True] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[False-None] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[False-exc_code] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[True-None] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict[True-exc_code] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict_list_same_code[None] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_fields.py::TestValidationErrorCode::test_validationerror_code_with_dict_list_same_code[exc_code] PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::SearchSplitTests::test_keep_quoted_togheter_regardless_of_commas PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::SearchSplitTests::test_splits_by_comma PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::SearchSplitTests::test_splits_quotes_followed_by_comma_and_sentence PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::SearchSplitTests::test_strips_commas_around_quoted PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::BaseFilterTests::test_filter_queryset_raises_error PASSED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::BaseFilterTests::test_get_schema_fields_checks_for_coreapi SKIPPED [ 38%]
[2024-11-23T00:18:40.643Z] tests/test_filters.py::SearchFilterTests::test_exact_search ERROR [ 38%]
[2024-11-23T00:18:40.893Z] tests/test_filters.py::SearchFilterTests::test_regexp_search ERROR [ 38%]
[2024-11-23T00:18:41.144Z] tests/test_filters.py::SearchFilterTests::test_search ERROR [ 39%]
[2024-11-23T00:18:41.394Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_additional_transforms ERROR [ 39%]
[2024-11-23T00:18:41.644Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_custom_lookup ERROR [ 39%]
[2024-11-23T00:18:41.894Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_escapes ERROR [ 39%]
[2024-11-23T00:18:42.144Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_multiple_words ERROR [ 39%]
[2024-11-23T00:18:42.394Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_null_characters ERROR [ 39%]
[2024-11-23T00:18:42.394Z] tests/test_filters.py::SearchFilterTests::test_search_field_with_quotes ERROR [ 39%]
[2024-11-23T00:18:42.645Z] tests/test_filters.py::SearchFilterTests::test_search_returns_same_queryset_if_no_search_fields_or_terms_provided ERROR [ 39%]
[2024-11-23T00:18:42.895Z] tests/test_filters.py::SearchFilterTests::test_search_with_filter_subclass ERROR [ 39%]
[2024-11-23T00:18:43.145Z] tests/test_filters.py::SearchFilterTests::test_search_with_nonstandard_search_param ERROR [ 39%]
[2024-11-23T00:18:43.395Z] tests/test_filters.py::SearchFilterTests::test_startswith_search ERROR [ 39%]
[2024-11-23T00:18:43.395Z] tests/test_filters.py::SearchFilterFkTests::test_custom_lookup_to_related_model PASSED [ 39%]
[2024-11-23T00:18:43.395Z] tests/test_filters.py::SearchFilterFkTests::test_must_call_distinct PASSED [ 39%]
[2024-11-23T00:18:43.395Z] tests/test_filters.py::SearchFilterFkTests::test_must_call_distinct_restores_meta_for_each_field PASSED [ 39%]
[2024-11-23T00:18:43.645Z] tests/test_filters.py::SearchFilterM2MTests::test_m2m_search FAILED [ 39%]
[2024-11-23T00:18:43.895Z] tests/test_filters.py::SearchFilterM2MTests::test_must_call_distinct FAILED [ 39%]
[2024-11-23T00:18:44.145Z] tests/test_filters.py::SearchFilterToManyTests::test_multiple_filter_conditions ERROR [ 40%]
[2024-11-23T00:18:44.396Z] tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_must_call_distinct_subsequent_m2m_fields ERROR [ 40%]
[2024-11-23T00:18:44.646Z] tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_search_in_annotated_field ERROR [ 40%]
[2024-11-23T00:18:44.646Z] tests/test_filters.py::OrderingFilterTests::test_default_ordering FAILED [ 40%]
[2024-11-23T00:18:44.896Z] tests/test_filters.py::OrderingFilterTests::test_default_ordering_using_string FAILED [ 40%]
[2024-11-23T00:18:45.146Z] tests/test_filters.py::OrderingFilterTests::test_get_template_context FAILED [ 40%]
[2024-11-23T00:18:45.396Z] tests/test_filters.py::OrderingFilterTests::test_incorrectfield_ordering FAILED [ 40%]
[2024-11-23T00:18:45.646Z] tests/test_filters.py::OrderingFilterTests::test_incorrecturl_extrahyphens_ordering FAILED [ 40%]
[2024-11-23T00:18:45.896Z] tests/test_filters.py::OrderingFilterTests::test_ordering FAILED [ 40%]
[2024-11-23T00:18:46.147Z] tests/test_filters.py::OrderingFilterTests::test_ordering_by_aggregate_field FAILED [ 40%]
[2024-11-23T00:18:46.397Z] tests/test_filters.py::OrderingFilterTests::test_ordering_by_dotted_source FAILED [ 40%]
[2024-11-23T00:18:46.647Z] tests/test_filters.py::OrderingFilterTests::test_ordering_with_improper_configuration FAILED [ 40%]
[2024-11-23T00:18:46.897Z] tests/test_filters.py::OrderingFilterTests::test_ordering_with_nonstandard_ordering_param FAILED [ 40%]
[2024-11-23T00:18:47.147Z] tests/test_filters.py::OrderingFilterTests::test_ordering_with_overridden_get_serializer_class FAILED [ 40%]
[2024-11-23T00:18:47.397Z] tests/test_filters.py::OrderingFilterTests::test_ordering_without_ordering_fields FAILED [ 40%]
[2024-11-23T00:18:47.647Z] tests/test_filters.py::OrderingFilterTests::test_reverse_ordering FAILED [ 41%]
[2024-11-23T00:18:47.647Z] tests/test_filters.py::SensitiveOrderingFilterTests::test_cannot_order_by_non_serializer_fields FAILED [ 41%]
[2024-11-23T00:18:47.898Z] tests/test_filters.py::SensitiveOrderingFilterTests::test_order_by_serializer_fields FAILED [ 41%]
[2024-11-23T00:18:48.148Z] tests/test_generics.py::TestRootView::test_delete_root_view FAILED [ 41%]
[2024-11-23T00:18:48.398Z] tests/test_generics.py::TestRootView::test_get_root_view FAILED [ 41%]
[2024-11-23T00:18:48.648Z] tests/test_generics.py::TestRootView::test_head_root_view FAILED [ 41%]
[2024-11-23T00:18:48.898Z] tests/test_generics.py::TestRootView::test_post_cannot_set_id FAILED [ 41%]
[2024-11-23T00:18:49.148Z] tests/test_generics.py::TestRootView::test_post_error_root_view FAILED [ 41%]
[2024-11-23T00:18:49.148Z] tests/test_generics.py::TestRootView::test_post_root_view FAILED [ 41%]
[2024-11-23T00:18:49.398Z] tests/test_generics.py::TestRootView::test_put_root_view FAILED [ 41%]
[2024-11-23T00:18:49.649Z] tests/test_generics.py::TestInstanceView::test_delete_instance_view FAILED [ 41%]
[2024-11-23T00:18:49.899Z] tests/test_generics.py::TestInstanceView::test_get_instance_view FAILED [ 41%]
[2024-11-23T00:18:50.149Z] tests/test_generics.py::TestInstanceView::test_get_instance_view_incorrect_arg FAILED [ 41%]
[2024-11-23T00:18:50.399Z] tests/test_generics.py::TestInstanceView::test_patch_cannot_create_an_object FAILED [ 41%]
[2024-11-23T00:18:50.399Z] tests/test_generics.py::TestInstanceView::test_patch_instance_view FAILED [ 41%]
[2024-11-23T00:18:50.649Z] tests/test_generics.py::TestInstanceView::test_post_instance_view FAILED [ 41%]
[2024-11-23T00:18:50.899Z] tests/test_generics.py::TestInstanceView::test_put_cannot_set_id FAILED [ 42%]
[2024-11-23T00:18:51.150Z] tests/test_generics.py::TestInstanceView::test_put_error_instance_view FAILED [ 42%]
[2024-11-23T00:18:51.400Z] tests/test_generics.py::TestInstanceView::test_put_instance_view FAILED [ 42%]
[2024-11-23T00:18:51.650Z] tests/test_generics.py::TestInstanceView::test_put_to_deleted_instance FAILED [ 42%]
[2024-11-23T00:18:51.900Z] tests/test_generics.py::TestInstanceView::test_put_to_filtered_out_instance FAILED [ 42%]
[2024-11-23T00:18:52.150Z] tests/test_generics.py::TestOverriddenGetObject::test_overridden_get_object_view FAILED [ 42%]
[2024-11-23T00:18:52.400Z] tests/test_generics.py::TestCreateModelWithAutoNowAddField::test_create_model_with_auto_now_add_field FAILED [ 42%]
[2024-11-23T00:18:52.650Z] tests/test_generics.py::TestM2MBrowsableAPI::test_m2m_in_browsable_api FAILED [ 42%]
[2024-11-23T00:18:52.901Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_dynamic_serializer_form_in_browsable_api FAILED [ 42%]
[2024-11-23T00:18:53.151Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_filters_out_name_with_filter_backend FAILED [ 42%]
[2024-11-23T00:18:53.401Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it FAILED [ 42%]
[2024-11-23T00:18:53.401Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_by_name_with_filter_backend FAILED [ 42%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_out_all_models_with_exclusive_filter_backend FAILED [ 42%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::TestGuardedQueryset::test_guarded_queryset PASSED [ 42%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_create_api_view_post PASSED [ 42%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_destroy_api_view_delete PASSED [ 43%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_retrieve_destroy_api_view_delete PASSED [ 43%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_retrieve_destroy_api_view_get PASSED [ 43%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_get PASSED [ 43%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_patch PASSED [ 43%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_retrieve_update_api_view_put PASSED [ 43%]
[2024-11-23T00:18:53.651Z] tests/test_generics.py::ApiViewsTests::test_update_api_view_partial_update PASSED [ 43%]
[2024-11-23T00:18:53.901Z] tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_invalid_string_for_uuid FAILED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_valid_uuid FAILED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_generics.py::TestSerializer::test_given_context_not_overridden PASSED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_generics.py::TestSerializer::test_serializer_class_not_provided PASSED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_generics.py::TestTyping::test_genericview_is_subscriptable PASSED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_generics.py::TestTyping::test_instanceview_is_subscriptable PASSED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_generics.py::TestTyping::test_listview_is_subscriptable PASSED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_raises_error_if_no_template_found PASSED [ 43%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_returns_own_template_name PASSED [ 44%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_get_template_names_returns_view_template_name PASSED [ 44%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view FAILED [ 44%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view FAILED [ 44%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_simple_html_view FAILED [ 44%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template FAILED [ 44%]
[2024-11-23T00:18:54.151Z] tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template FAILED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_lazy_hyperlinks.py::TestLazyHyperlinkNames::test_lazy_hyperlink_names FAILED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_determine_metadata_abstract_method_raises_proper_error PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_metadata PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_none_metadata PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_actions PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_global_permissions PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_object_permissions PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_bug_2455_clone_request PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_bug_2477_clone_request PASSED [ 44%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_dont_show_hidden_fields PASSED [ 45%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestMetadata::test_list_serializer_metadata_returns_info_about_fields_of_child_serializer PASSED [ 45%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_decimal_field_info_type PASSED [ 45%]
[2024-11-23T00:18:54.402Z] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_null_boolean_field_info_type PASSED [ 45%]
[2024-11-23T00:18:54.652Z] tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_related_field_choices FAILED [ 45%]
[2024-11-23T00:18:54.652Z] tests/test_metadata.py::TestModelSerializerMetadata::test_read_only_primary_key_related_field PASSED [ 45%]
[2024-11-23T00:18:54.652Z] tests/test_middleware.py::TestMiddleware::test_middleware_can_access_request_post_when_processing_response PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_middleware.py::TestMiddleware::test_middleware_can_access_user_when_processing_response FAILED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_class_based_view PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_function_based_view PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_viewset_list PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_middleware.py::TestLoginRequiredMiddlewareCompat::test_viewset_list_action PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestModelSerializer::test_abstract_model PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestModelSerializer::test_create_method PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_choices_with_nonstandard_args PASSED [ 45%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_extra_field_kwargs PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_extra_field_kwargs_required PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_field_options PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_invalid_field PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_method_field PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_missing_field PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_missing_superclass_field PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_nullable_boolean_field_choices PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_pk_fields PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRegularFieldMappings::test_regular_fields PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestDurationFieldMapping::test_duration_field PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestDurationFieldMapping::test_duration_field_with_validators PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestGenericIPAddressFieldValidation::test_ip_address_validation PASSED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_array_field SKIPPED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_hstore_field SKIPPED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestPosgresFieldsMapping::test_json_field SKIPPED [ 46%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestDjangoJSONFieldMapping::test_json_field PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_hyperlinked_relations PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_hyperlinked_relations PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_hyperlinked_relations_starred_source PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_relations PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_nested_unique_together_relations PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_relations PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_foreign_key PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_many_to_many PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_one_to_one PASSED [ 47%]
[2024-11-23T00:18:54.902Z] tests/test_model_serializer.py::TestRelationalFieldMappings::test_pk_reverse_through PASSED [ 47%]
[2024-11-23T00:18:55.152Z] tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_custom_display_value FAILED [ 47%]
[2024-11-23T00:18:55.402Z] tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_default_display_value FAILED [ 47%]
[2024-11-23T00:18:55.653Z] tests/test_model_serializer.py::TestIntegration::test_pk_create FAILED [ 47%]
[2024-11-23T00:18:55.903Z] tests/test_model_serializer.py::TestIntegration::test_pk_retrival FAILED [ 47%]
[2024-11-23T00:18:56.153Z] tests/test_model_serializer.py::TestIntegration::test_pk_update FAILED [ 48%]
[2024-11-23T00:18:56.403Z] tests/test_model_serializer.py::TestBulkCreate::test_bulk_create FAILED [ 48%]
[2024-11-23T00:18:56.403Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_declared_fields_with_exclude_option PASSED [ 48%]
[2024-11-23T00:18:56.403Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_exclude_option PASSED [ 48%]
[2024-11-23T00:18:56.403Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_fields_and_exclude_options PASSED [ 48%]
[2024-11-23T00:18:56.403Z] tests/test_model_serializer.py::TestSerializerMetaClass::test_meta_class_fields_option PASSED [ 48%]
[2024-11-23T00:18:56.653Z] tests/test_model_serializer.py::Issue2704TestCase::test_queryset_all FAILED [ 48%]
[2024-11-23T00:18:56.903Z] tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source FAILED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source_with_default FAILED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::TestDecimalFieldMappings::test_decimal_field_has_decimal_validator PASSED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::TestDecimalFieldMappings::test_max_value_is_passed PASSED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::TestDecimalFieldMappings::test_min_value_is_passed PASSED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::TestMetaInheritance::test_extra_kwargs_not_altered PASSED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::TestModelFieldValues::test_model_field PASSED [ 48%]
[2024-11-23T00:18:57.153Z] tests/test_model_serializer.py::TestUniquenessOverride::test_required_not_overwritten PASSED [ 48%]
[2024-11-23T00:18:57.404Z] tests/test_model_serializer.py::Issue3674Test::test_nonID_PK_foreignkey_model_serializer FAILED [ 48%]
[2024-11-23T00:18:57.404Z] tests/test_model_serializer.py::Issue3674Test::test_nonPK_foreignkey_model_serializer PASSED [ 49%]
[2024-11-23T00:18:57.654Z] tests/test_model_serializer.py::Issue4897TestCase::test_should_assert_if_writing_readonly_fields FAILED [ 49%]
[2024-11-23T00:18:57.904Z] tests/test_model_serializer.py::Test5004UniqueChoiceField::test_unique_choice_field FAILED [ 49%]
[2024-11-23T00:18:57.904Z] tests/test_model_serializer.py::TestFieldSource::test_named_field_source PASSED [ 49%]
[2024-11-23T00:18:58.154Z] tests/test_model_serializer.py::TestFieldSource::test_traverse_nullable_fk FAILED [ 49%]
[2024-11-23T00:18:58.405Z] tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager FAILED [ 49%]
[2024-11-23T00:18:58.405Z] tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager_error_message PASSED [ 49%]
[2024-11-23T00:18:58.655Z] tests/test_model_serializer.py::Issue6751Test::test_model_serializer_save_m2m_after_instance FAILED [ 49%]
[2024-11-23T00:18:58.655Z] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_data_is_valid_without_parent_ptr PASSED [ 49%]
[2024-11-23T00:18:58.655Z] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_multitable_inherited_model_fields_as_expected PASSED [ 49%]
[2024-11-23T00:18:58.905Z] tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_onetoone_primary_key_model_fields_as_expected FAILED [ 49%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_overspecifies_accept_use_client PASSED [ 49%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_specifies_parameter PASSED [ 49%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_underspecifies_accept_use_renderer PASSED [ 49%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_client_without_accept_use_renderer PASSED [ 49%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_match_is_false_if_main_types_not_match PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_match_is_false_if_keys_not_match PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_precedence_with_wildcard_subtype PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_mediatype_string_representation PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::TestAcceptedMediaType::test_raise_error_if_no_suitable_renderers_found PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::BaseContentNegotiationTests::test_raise_error_for_abstract_select_parser_method PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_negotiation.py::BaseContentNegotiationTests::test_raise_error_for_abstract_select_renderer_method PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_one_to_one_with_inheritance.py::InheritedModelSerializationTests::test_multitable_inherited_model_fields_as_expected PASSED [ 50%]
[2024-11-23T00:18:58.905Z] tests/test_pagination.py::TestPaginationIntegration::test_filtered_items_are_paginated FAILED [ 50%]
[2024-11-23T00:18:59.156Z] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size FAILED [ 50%]
[2024-11-23T00:18:59.156Z] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_over_maximum FAILED [ 50%]
[2024-11-23T00:18:59.406Z] tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_to_zero FAILED [ 50%]
[2024-11-23T00:18:59.406Z] tests/test_pagination.py::TestPaginationIntegration::test_additional_query_params_are_preserved FAILED [ 50%]
[2024-11-23T00:18:59.406Z] tests/test_pagination.py::TestPaginationIntegration::test_empty_query_params_are_preserved FAILED [ 50%]
[2024-11-23T00:18:59.406Z] tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_zero_page PASSED [ 50%]
[2024-11-23T00:18:59.406Z] tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_invalid_page PASSED [ 51%]
[2024-11-23T00:18:59.406Z] tests/test_pagination.py::TestPaginationDisabledIntegration::test_unpaginated_list PASSED [ 51%]
[2024-11-23T00:18:59.656Z] tests/test_pagination.py::TestPageNumberPagination::test_no_page_number[/] FAILED [ 51%]
[2024-11-23T00:18:59.656Z] tests/test_pagination.py::TestPageNumberPagination::test_no_page_number[/?page=] FAILED [ 51%]
[2024-11-23T00:18:59.656Z] tests/test_pagination.py::TestPageNumberPagination::test_second_page FAILED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestPageNumberPagination::test_last_page FAILED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestPageNumberPagination::test_invalid_page PASSED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestPageNumberPagination::test_get_paginated_response_schema PASSED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestPageNumberPaginationOverride::test_no_page_number FAILED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestPageNumberPaginationOverride::test_invalid_page PASSED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestLimitOffset::test_no_offset FAILED [ 51%]
[2024-11-23T00:18:59.907Z] tests/test_pagination.py::TestLimitOffset::test_pagination_not_applied_if_limit_or_default_limit_not_set PASSED [ 51%]
[2024-11-23T00:19:00.157Z] tests/test_pagination.py::TestLimitOffset::test_single_offset FAILED [ 51%]
[2024-11-23T00:19:00.157Z] tests/test_pagination.py::TestLimitOffset::test_first_offset FAILED [ 51%]
[2024-11-23T00:19:00.157Z] tests/test_pagination.py::TestLimitOffset::test_middle_offset FAILED [ 51%]
[2024-11-23T00:19:00.407Z] tests/test_pagination.py::TestLimitOffset::test_ending_offset FAILED [ 51%]
[2024-11-23T00:19:00.407Z] tests/test_pagination.py::TestLimitOffset::test_erronous_offset FAILED [ 52%]
[2024-11-23T00:19:00.407Z] tests/test_pagination.py::TestLimitOffset::test_invalid_offset PASSED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestLimitOffset::test_invalid_limit FAILED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestLimitOffset::test_zero_limit FAILED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestLimitOffset::test_max_limit FAILED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestLimitOffset::test_get_paginated_response_schema PASSED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestCursorPagination::test_invalid_cursor FAILED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestCursorPagination::test_use_with_ordering_filter PASSED [ 52%]
[2024-11-23T00:19:00.658Z] tests/test_pagination.py::TestCursorPagination::test_use_with_ordering_filter_without_ordering_default_value PASSED [ 52%]
[2024-11-23T00:19:00.908Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination FAILED [ 52%]
[2024-11-23T00:19:00.908Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_forward FAILED [ 52%]
[2024-11-23T00:19:00.908Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_reverse FAILED [ 52%]
[2024-11-23T00:19:01.159Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size FAILED [ 52%]
[2024-11-23T00:19:01.159Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_over_limit FAILED [ 52%]
[2024-11-23T00:19:01.159Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_zero FAILED [ 52%]
[2024-11-23T00:19:01.409Z] tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_negative FAILED [ 53%]
[2024-11-23T00:19:01.409Z] tests/test_pagination.py::TestCursorPagination::test_get_paginated_response_schema PASSED [ 53%]
[2024-11-23T00:19:01.659Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination FAILED [ 53%]
[2024-11-23T00:19:01.909Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_forward FAILED [ 53%]
[2024-11-23T00:19:02.159Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_reverse FAILED [ 53%]
[2024-11-23T00:19:02.410Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size FAILED [ 53%]
[2024-11-23T00:19:02.660Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_negative FAILED [ 53%]
[2024-11-23T00:19:02.910Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_over_limit FAILED [ 53%]
[2024-11-23T00:19:03.160Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_zero FAILED [ 53%]
[2024-11-23T00:19:03.411Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_get_paginated_response_schema FAILED [ 53%]
[2024-11-23T00:19:03.661Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_invalid_cursor FAILED [ 53%]
[2024-11-23T00:19:03.911Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter FAILED [ 53%]
[2024-11-23T00:19:04.161Z] tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter_without_ordering_default_value FAILED [ 53%]
[2024-11-23T00:19:04.161Z] tests/test_pagination.py::test_get_displayed_page_numbers PASSED [ 53%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFormParser::test_parse PASSED [ 53%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFileUploadParser::test_get_encoded_filename PASSED [ 53%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFileUploadParser::test_get_filename PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFileUploadParser::test_parse PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename_large_file PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestFileUploadParser::test_parse_missing_filename_multiple_upload_handlers PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestJSONParser::test_float_strictness PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_post_method PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_post_method_with_json_parser PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestPOSTAccessed::test_post_accessed_in_put_method PASSED [ 54%]
[2024-11-23T00:19:04.161Z] tests/test_parsers.py::TestPOSTAccessed::test_request_read_before_parsing PASSED [ 54%]
[2024-11-23T00:19:04.411Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_api_root_view_discard_default_django_model_permission FAILED [ 54%]
[2024-11-23T00:19:04.662Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_calling_method_not_allowed FAILED [ 54%]
[2024-11-23T00:19:04.912Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_check_auth_before_queryset_call FAILED [ 54%]
[2024-11-23T00:19:05.162Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_create_permissions FAILED [ 54%]
[2024-11-23T00:19:05.412Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_delete_permissions FAILED [ 54%]
[2024-11-23T00:19:05.412Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_put_permissions FAILED [ 55%]
[2024-11-23T00:19:05.663Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_empty_view_does_not_assert FAILED [ 55%]
[2024-11-23T00:19:05.913Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_get_queryset_has_create_permissions FAILED [ 55%]
[2024-11-23T00:19:06.163Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_create_permissions FAILED [ 55%]
[2024-11-23T00:19:06.413Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_delete_permissions FAILED [ 55%]
[2024-11-23T00:19:06.664Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_put_permissions FAILED [ 55%]
[2024-11-23T00:19:06.914Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_authenticated_user FAILED [ 55%]
[2024-11-23T00:19:07.164Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_unauthenticated_user FAILED [ 55%]
[2024-11-23T00:19:07.414Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_disallowed FAILED [ 55%]
[2024-11-23T00:19:07.665Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_permitted FAILED [ 55%]
[2024-11-23T00:19:07.915Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_updateonly FAILED [ 55%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ModelPermissionsIntegrationTests::test_queryset_assertions FAILED [ 55%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_delete_permissions SKIPPED [ 55%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_get_queryset_permissions SKIPPED [ 55%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_list_permissions SKIPPED [ 55%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_read_permissions SKIPPED [ 55%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_can_update_permissions SKIPPED [ 56%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_delete_permissions SKIPPED [ 56%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_method_not_allowed SKIPPED [ 56%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_read_permissions SKIPPED [ 56%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_update_permissions SKIPPED [ 56%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::ObjectPermissionsIntegrationTests::test_cannot_update_permissions_non_existing SKIPPED [ 56%]
[2024-11-23T00:19:08.165Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied FAILED [ 56%]
[2024-11-23T00:19:08.415Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object FAILED [ 56%]
[2024-11-23T00:19:08.666Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object_with_custom_detail FAILED [ 56%]
[2024-11-23T00:19:08.916Z] tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_with_custom_detail FAILED [ 56%]
[2024-11-23T00:19:09.166Z] tests/test_permissions.py::PermissionsCompositionTests::test_and_false FAILED [ 56%]
[2024-11-23T00:19:09.416Z] tests/test_permissions.py::PermissionsCompositionTests::test_and_lazyness FAILED [ 56%]
[2024-11-23T00:19:09.667Z] tests/test_permissions.py::PermissionsCompositionTests::test_and_true FAILED [ 56%]
[2024-11-23T00:19:09.917Z] tests/test_permissions.py::PermissionsCompositionTests::test_not_false FAILED [ 56%]
[2024-11-23T00:19:10.167Z] tests/test_permissions.py::PermissionsCompositionTests::test_not_true FAILED [ 56%]
[2024-11-23T00:19:10.417Z] tests/test_permissions.py::PermissionsCompositionTests::test_object_and_lazyness FAILED [ 57%]
[2024-11-23T00:19:10.668Z] tests/test_permissions.py::PermissionsCompositionTests::test_object_or_lazyness FAILED [ 57%]
[2024-11-23T00:19:10.918Z] tests/test_permissions.py::PermissionsCompositionTests::test_or_false FAILED [ 57%]
[2024-11-23T00:19:11.168Z] tests/test_permissions.py::PermissionsCompositionTests::test_or_lazyness FAILED [ 57%]
[2024-11-23T00:19:11.418Z] tests/test_permissions.py::PermissionsCompositionTests::test_or_true FAILED [ 57%]
[2024-11-23T00:19:11.669Z] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence FAILED [ 57%]
[2024-11-23T00:19:11.919Z] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence_with_negation FAILED [ 57%]
[2024-11-23T00:19:12.169Z] tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_without_negation FAILED [ 57%]
[2024-11-23T00:19:12.169Z] tests/test_permissions.py::PermissionsCompositionTests::test_unimplemented_has_object_permission FAILED [ 57%]
[2024-11-23T00:19:12.419Z] tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_excluding_instance_from_original_queryset FAILED [ 57%]
[2024-11-23T00:19:12.670Z] tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_updates FAILED [ 57%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestStringRelatedField::test_string_related_representation PASSED [ 57%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_no_settings PASSED [ 57%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_cutoff PASSED [ 57%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_cutoff_none PASSED [ 57%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestRelatedFieldHTMLCutoff::test_settings_kwargs_cutoff PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_explicit_many_false PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_bool PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_does_not_exist PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_exists PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_related_lookup_invalid_type PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestPrimaryKeyRelatedField::test_pk_representation PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_related_lookup_does_not_exist PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_related_lookup_exists PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestProxiedPrimaryKeyRelatedField::test_pk_representation PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_internal_type_error PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_does_not_exist PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_exists PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_url_encoded_exists PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_lookup_url_space_encoded_exists PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_queryset_type_error PASSED [ 58%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_hyperlinked_related_queryset_value_error PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_representation_unsaved_object_with_non_nullable_pk PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedRelatedField::test_serialize_empty_relationship_attribute PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_improperly_configured PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation_unsaved_object PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedIdentityField::test_representation_with_format PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedIdentityFieldWithFormat::test_representation PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestHyperlinkedIdentityFieldWithFormat::test_representation_with_format PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestSlugRelatedField::test_overriding_get_queryset PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestSlugRelatedField::test_representation PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_does_not_exist PASSED [ 59%]
[2024-11-23T00:19:12.670Z] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_exists PASSED [ 59%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestSlugRelatedField::test_slug_related_lookup_invalid_type PASSED [ 59%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_nested_overriding_get_queryset PASSED [ 59%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_nested_representation PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_overriding_get_queryset PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_nested_representation PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_overriding_get_queryset PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_representation PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_lookup_does_not_exist PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_lookup_exists PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_lookup_invalid_type PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_lookup_does_not_exist PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_lookup_exists PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_lookup_invalid_type PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_nested_lookup_does_not_exist PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_nested_lookup_exists PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestNestedSlugRelatedField::test_slug_related_nested_nested_lookup_invalid_type PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestManyRelatedField::test_get_value_multi_dictionary_full PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestManyRelatedField::test_get_value_multi_dictionary_partial PASSED [ 60%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestManyRelatedField::test_get_value_regular_dictionary_full PASSED [ 61%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestManyRelatedField::test_get_value_regular_dictionary_partial PASSED [ 61%]
[2024-11-23T00:19:12.920Z] tests/test_relations.py::TestHyperlink::test_can_be_pickled PASSED [ 61%]
[2024-11-23T00:19:12.920Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_create FAILED [ 61%]
[2024-11-23T00:19:13.170Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve FAILED [ 61%]
[2024-11-23T00:19:13.421Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED [ 61%]
[2024-11-23T00:19:13.671Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_update FAILED [ 61%]
[2024-11-23T00:19:13.921Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_relative_hyperlinks FAILED [ 61%]
[2024-11-23T00:19:14.171Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_create FAILED [ 61%]
[2024-11-23T00:19:14.422Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_retrieve FAILED [ 61%]
[2024-11-23T00:19:14.672Z] tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_update FAILED [ 61%]
[2024-11-23T00:19:14.922Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_create FAILED [ 61%]
[2024-11-23T00:19:14.922Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_retrieve FAILED [ 61%]
[2024-11-23T00:19:15.172Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update FAILED [ 61%]
[2024-11-23T00:19:15.423Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 61%]
[2024-11-23T00:19:15.673Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 62%]
[2024-11-23T00:19:15.923Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_create FAILED [ 62%]
[2024-11-23T00:19:16.173Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 62%]
[2024-11-23T00:19:16.424Z] tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_update FAILED [ 62%]
[2024-11-23T00:19:16.424Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 62%]
[2024-11-23T00:19:16.674Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 62%]
[2024-11-23T00:19:16.924Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 62%]
[2024-11-23T00:19:17.174Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 62%]
[2024-11-23T00:19:17.425Z] tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 62%]
[2024-11-23T00:19:17.675Z] tests/test_relations_hyperlink.py::HyperlinkedNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED [ 62%]
[2024-11-23T00:19:17.925Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_create FAILED [ 62%]
[2024-11-23T00:19:17.925Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve FAILED [ 62%]
[2024-11-23T00:19:18.475Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve_prefetch_related FAILED [ 62%]
[2024-11-23T00:19:18.475Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_unsaved FAILED [ 62%]
[2024-11-23T00:19:18.726Z] tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_update FAILED [ 62%]
[2024-11-23T00:19:18.976Z] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_create FAILED [ 62%]
[2024-11-23T00:19:19.226Z] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_retrieve FAILED [ 63%]
[2024-11-23T00:19:19.476Z] tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_update FAILED [ 63%]
[2024-11-23T00:19:19.727Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_create FAILED [ 63%]
[2024-11-23T00:19:19.977Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_not_required FAILED [ 63%]
[2024-11-23T00:19:20.227Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_retrieve FAILED [ 63%]
[2024-11-23T00:19:20.227Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update FAILED [ 63%]
[2024-11-23T00:19:20.477Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 63%]
[2024-11-23T00:19:20.728Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 63%]
[2024-11-23T00:19:20.978Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_empty FAILED [ 63%]
[2024-11-23T00:19:21.228Z] tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_unsaved FAILED [ 63%]
[2024-11-23T00:19:21.478Z] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_Q_limited_choices FAILED [ 63%]
[2024-11-23T00:19:21.728Z] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_limited_choices FAILED [ 63%]
[2024-11-23T00:19:21.979Z] tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_without_limited_choices FAILED [ 63%]
[2024-11-23T00:19:22.229Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_create FAILED [ 63%]
[2024-11-23T00:19:22.479Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 63%]
[2024-11-23T00:19:22.729Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED [ 64%]
[2024-11-23T00:19:22.729Z] tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_update FAILED [ 64%]
[2024-11-23T00:19:22.980Z] tests/test_relations_pk.py::PKRelationTests::test_relation_field_callable_source FAILED [ 64%]
[2024-11-23T00:19:23.530Z] tests/test_relations_pk.py::PKRelationTests::test_relation_field_property_source FAILED [ 64%]
[2024-11-23T00:19:23.530Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 64%]
[2024-11-23T00:19:23.780Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 64%]
[2024-11-23T00:19:24.031Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 64%]
[2024-11-23T00:19:24.281Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 64%]
[2024-11-23T00:19:24.531Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 64%]
[2024-11-23T00:19:24.781Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_null_uuid_foreign_key_serializes_as_none FAILED [ 64%]
[2024-11-23T00:19:25.032Z] tests/test_relations_pk.py::PKNullableForeignKeyTests::test_nullable_uuid_foreign_key_is_valid_when_none FAILED [ 64%]
[2024-11-23T00:19:25.282Z] tests/test_relations_pk.py::PKNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null FAILED [ 64%]
[2024-11-23T00:19:25.282Z] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key FAILED [ 64%]
[2024-11-23T00:19:25.532Z] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_does_not_exist FAILED [ 64%]
[2024-11-23T00:19:25.782Z] tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_no_duplicates FAILED [ 64%]
[2024-11-23T00:19:26.033Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_create FAILED [ 65%]
[2024-11-23T00:19:26.283Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve FAILED [ 65%]
[2024-11-23T00:19:26.533Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve_select_related FAILED [ 65%]
[2024-11-23T00:19:26.783Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update FAILED [ 65%]
[2024-11-23T00:19:27.034Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_incorrect_type FAILED [ 65%]
[2024-11-23T00:19:27.034Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_with_invalid_null FAILED [ 65%]
[2024-11-23T00:19:27.284Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_create FAILED [ 65%]
[2024-11-23T00:19:27.534Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve FAILED [ 65%]
[2024-11-23T00:19:27.784Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related FAILED [ 65%]
[2024-11-23T00:19:28.034Z] tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_update FAILED [ 65%]
[2024-11-23T00:19:28.285Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring FAILED [ 65%]
[2024-11-23T00:19:28.535Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_null FAILED [ 65%]
[2024-11-23T00:19:28.785Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_retrieve_with_null FAILED [ 65%]
[2024-11-23T00:19:28.785Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring FAILED [ 65%]
[2024-11-23T00:19:29.036Z] tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_null FAILED [ 65%]
[2024-11-23T00:19:29.036Z] tests/test_renderers.py::BasicRendererTests::test_expected_results PASSED [ 65%]
[2024-11-23T00:19:29.036Z] tests/test_renderers.py::DocumentingRendererTests::test_only_permitted_forms_are_displayed PASSED [ 66%]
[2024-11-23T00:19:29.036Z] tests/test_renderers.py::RendererEndToEndTests::test_204_no_content_responses_have_no_content_type_set FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_contains_headers_of_api_response FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content_on_accept_any FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_head_method_serializes_no_content FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_parse_error_renderers_browsable_api PASSED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_default_case FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_non_default_case FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_query FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::RendererEndToEndTests::test_unsatisfiable_accept_header_on_request_returns_406_status FAILED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::BaseRendererTests::test_render_raise_error PASSED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::JSONRendererTests::test_float_strictness PASSED [ 66%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::JSONRendererTests::test_render_dict_abc_obj PASSED [ 67%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::JSONRendererTests::test_render_lazy_strings PASSED [ 67%]
[2024-11-23T00:19:29.286Z] tests/test_renderers.py::JSONRendererTests::test_render_obj_with_getitem PASSED [ 67%]
[2024-11-23T00:19:29.536Z] tests/test_renderers.py::JSONRendererTests::test_render_queryset_values FAILED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::JSONRendererTests::test_render_queryset_values_list FAILED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::JSONRendererTests::test_with_content_type_args PASSED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::JSONRendererTests::test_without_content_type_args PASSED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::UnicodeJSONRendererTests::test_proper_encoding PASSED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::UnicodeJSONRendererTests::test_u2028_u2029 PASSED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::AsciiJSONRendererTests::test_proper_encoding PASSED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::CacheRenderTest::test_get_caching FAILED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::CacheRenderTest::test_head_caching FAILED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::TestJSONIndentationStyles::test_indented PASSED [ 67%]
[2024-11-23T00:19:29.786Z] tests/test_renderers.py::TestJSONIndentationStyles::test_compact PASSED [ 67%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestJSONIndentationStyles::test_long_form PASSED [ 67%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestHiddenFieldHTMLFormRenderer::test_hidden_field_rendering PASSED [ 67%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestHTMLFormRenderer::test_render_with_default_args PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestHTMLFormRenderer::test_render_with_provided_args PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestChoiceFieldHTMLFormRenderer::test_render_initial_option PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestChoiceFieldHTMLFormRenderer::test_render_selected_option PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestMultipleChoiceFieldHTMLFormRenderer::test_render_selected_option_with_integer_option_ids PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::TestMultipleChoiceFieldHTMLFormRenderer::test_render_selected_option_with_string_option_ids PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::StaticHTMLRendererTests::test_static_renderer PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::StaticHTMLRendererTests::test_static_renderer_with_exception PASSED [ 68%]
[2024-11-23T00:19:29.787Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown FAILED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown_not_authed PASSED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_description_returns_empty_string_for_401_and_403_statuses PASSED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_filter_form_returns_none_if_data_is_not_list_instance PASSED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_get_raw_data_form PASSED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::BrowsableAPIRendererTests::test_render_form_for_serializer PASSED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_get_context_result_urls PASSED [ 68%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_get_result_url PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_get_result_url_no_result PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_render_dict PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_render_dict_with_items_key PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_render_dict_with_iteritems_key PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::AdminRendererTests::test_render_when_resource_created PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::TestDocumentationRenderer::test_document_with_link_named_data SKIPPED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::TestDocumentationRenderer::test_shell_code_example_rendering SKIPPED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_renderers.py::TestSchemaJSRenderer::test_schemajs_output SKIPPED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestInitializer::test_request_type PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_request_DATA_with_form_content PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_request_DATA_with_text_content PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_request_POST_with_files PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_request_POST_with_form_content PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_form_content_PUT PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_no_content_GET PASSED [ 69%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_no_content_HEAD PASSED [ 70%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::TestContentParsing::test_standard_behaviour_determines_non_form_content_PUT PASSED [ 70%]
[2024-11-23T00:19:30.037Z] tests/test_request.py::FileUploadTests::test_fileuploads_closed_at_request_end FAILED [ 70%]
[2024-11-23T00:19:30.287Z] tests/test_request.py::TestContentParsingWithAuthentication::test_user_logged_in_authentication_has_POST_when_not_logged_in FAILED [ 70%]
[2024-11-23T00:19:30.287Z] tests/test_request.py::TestUserSetter::test_calling_user_fails_when_attribute_error_is_raised FAILED [ 70%]
[2024-11-23T00:19:30.538Z] tests/test_request.py::TestUserSetter::test_logged_in_user_is_set_on_wrapped_request FAILED [ 70%]
[2024-11-23T00:19:30.788Z] tests/test_request.py::TestUserSetter::test_user_can_be_set FAILED [ 70%]
[2024-11-23T00:19:31.038Z] tests/test_request.py::TestUserSetter::test_user_can_login FAILED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestUserSetter::test_user_can_logout FAILED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestAuthSetter::test_auth_can_be_set PASSED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestSecure::test_default_secure_false PASSED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestSecure::test_default_secure_true PASSED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestHttpRequest::test_attribute_access_proxy PASSED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestHttpRequest::test_duplicate_request_form_data_access FAILED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestHttpRequest::test_duplicate_request_stream_parsing_exception FAILED [ 70%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestHttpRequest::test_exception_proxy PASSED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestHttpRequest::test_repr PASSED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestDeepcopy::test_deepcopy_works PASSED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_request.py::TestTyping::test_request_is_subscriptable PASSED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_auth SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_get_request SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_get_request_query_params_by_kwarg SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_get_request_query_params_in_url SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_get_with_headers SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_get_with_session_headers SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_post_form_request SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_post_json_request SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_post_multipart_request SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_requests_client.py::RequestsClientTests::test_session SKIPPED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content FAILED [ 71%]
[2024-11-23T00:19:31.288Z] tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content_on_accept_any FAILED [ 72%]
[2024-11-23T00:19:31.288Z] tests/test_response.py::RendererIntegrationTests::test_head_method_serializes_no_content FAILED [ 72%]
[2024-11-23T00:19:31.288Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_is_used_on_format_query_with_matching_accept FAILED [ 72%]
[2024-11-23T00:19:31.288Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_default_case FAILED [ 72%]
[2024-11-23T00:19:31.289Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_non_default_case FAILED [ 72%]
[2024-11-23T00:19:31.289Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_kwargs FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_query FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::UnsupportedMediaTypeTests::test_should_allow_posting_json FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_a_form FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_xml FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue122Tests::test_html_renderer_is_first PASSED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue122Tests::test_only_html_renderer PASSED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue467Tests::test_form_has_label_and_help_text PASSED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue807Tests::test_content_type_set_explicitly_on_response FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue807Tests::test_does_not_append_charset_by_default FAILED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue807Tests::test_form_has_label_and_help_text PASSED [ 72%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::Issue807Tests::test_if_there_is_charset_specified_on_renderer_it_gets_appended FAILED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_response.py::TestTyping::test_response_is_subscriptable PASSED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme PASSED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme_fallback_to_default_on_error FAILED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_reverse.py::ReverseTests::test_reversed_urls_are_fully_qualified FAILED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_routers.py::TestSimpleRouter::test_action_routes PASSED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_routers.py::TestSimpleRouter::test_multiple_action_handlers FAILED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_routers.py::TestSimpleRouter::test_register_after_accessing_urls PASSED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_routers.py::TestRootView::test_retrieve_namespaced_root FAILED [ 73%]
[2024-11-23T00:19:31.539Z] tests/test_routers.py::TestRootView::test_retrieve_non_namespaced_root FAILED [ 73%]
[2024-11-23T00:19:31.789Z] tests/test_routers.py::TestCustomLookupFields::test_custom_lookup_field_route FAILED [ 73%]
[2024-11-23T00:19:32.039Z] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_detail_view FAILED [ 73%]
[2024-11-23T00:19:32.290Z] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_list_view FAILED [ 73%]
[2024-11-23T00:19:32.540Z] tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_url_encoded_detail_view_ FAILED [ 73%]
[2024-11-23T00:19:32.540Z] tests/test_routers.py::TestLookupValueRegex::test_urls_limited_by_lookup_value_regex PASSED [ 73%]
[2024-11-23T00:19:32.790Z] tests/test_routers.py::TestLookupUrlKwargs::test_custom_lookup_url_kwarg_route FAILED [ 74%]
[2024-11-23T00:19:33.040Z] tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_encoded_kwarg_detail_view FAILED [ 74%]
[2024-11-23T00:19:33.290Z] tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_kwarg_detail_view FAILED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestTrailingSlashIncluded::test_urls_have_trailing_slash_by_default PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestTrailingSlashRemoved::test_urls_can_have_trailing_slash_removed PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestNameableRoot::test_router_has_custom_name PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestActionKeywordArgs::test_action_kwargs PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestActionAppliedToExistingRoute::test_exception_raised_when_action_applied_to_existing_route PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestDynamicListAndDetailRouter::test_inherited_list_and_detail_route_decorators PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestDynamicListAndDetailRouter::test_list_and_detail_route_decorators PASSED [ 74%]
[2024-11-23T00:19:33.291Z] tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_detail FAILED [ 74%]
[2024-11-23T00:19:33.541Z] tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_list FAILED [ 74%]
[2024-11-23T00:19:33.541Z] tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_detail FAILED [ 74%]
[2024-11-23T00:19:33.541Z] tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_list FAILED [ 74%]
[2024-11-23T00:19:33.791Z] tests/test_routers.py::TestUrlPath::test_create FAILED [ 74%]
[2024-11-23T00:19:34.041Z] tests/test_routers.py::TestUrlPath::test_defaultrouter_root FAILED [ 74%]
[2024-11-23T00:19:34.291Z] tests/test_routers.py::TestUrlPath::test_delete FAILED [ 75%]
[2024-11-23T00:19:34.542Z] tests/test_routers.py::TestUrlPath::test_detail_extra_action FAILED [ 75%]
[2024-11-23T00:19:34.792Z] tests/test_routers.py::TestUrlPath::test_detail_extra_other_action FAILED [ 75%]
[2024-11-23T00:19:34.792Z] tests/test_routers.py::TestUrlPath::test_list FAILED [ 75%]
[2024-11-23T00:19:35.042Z] tests/test_routers.py::TestUrlPath::test_list_extra_action FAILED [ 75%]
[2024-11-23T00:19:35.292Z] tests/test_routers.py::TestUrlPath::test_retrieve FAILED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestUrlPath::test_update FAILED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestViewInitkwargs::test_basename PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestViewInitkwargs::test_detail PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestViewInitkwargs::test_suffix PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_autogenerated_basenames PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_mixed_basenames PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_specified_basename PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_conflicting_specified_basename_different_models PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_autogenerated_basename_different_models PASSED [ 75%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_specified_basename PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameSimpleRouter::test_nonconflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_autogenerated_basenames PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_specified_basename PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_conflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_autogenerated_basename_different_models PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T00:19:35.543Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_specified_basename PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouter::test_nonconflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_autogenerated_basenames PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_mixed_basenames PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_specified_basename PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_conflicting_specified_basename_different_models PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_autogenerated_basename_different_models PASSED [ 76%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_mixed_basenames PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_specified_basename PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_routers.py::TestDuplicateBasenameDefaultRouterRootViewName::test_nonconflicting_specified_basename_different_models PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestFieldImports::test_fields PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestFieldImports::test_relations PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_valid_serializer PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_invalid_serializer PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_invalid_datatype PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_partial_validation PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_empty_serializer PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_missing_attribute_during_serialization PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_data_access_before_save_raises_error PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_validate_none_data PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_serialize_chainmap PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_serialize_custom_mapping PASSED [ 77%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_custom_to_internal_value PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_iterable_validators PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializer::test_serializer_is_subscriptable PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestValidateMethod::test_non_field_error_validate_method PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestValidateMethod::test_field_error_validate_method PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_abstract_methods_raise_proper_errors PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_access_to_data_attribute_before_validation_raises_error PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_access_to_errors_attribute_before_validation_raises_error PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_access_to_validated_data_attribute_before_validation_raises_error PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_serialize_instance PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_serialize_list PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_validate_data PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestBaseSerializer::test_validate_list PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestStarredSource::test_nested_validate PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestStarredSource::test_nested_null_validate PASSED [ 78%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestStarredSource::test_nested_serialize PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestStarredSource::test_field_validate PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestStarredSource::test_field_null_validate PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestIncorrectlyConfigured::test_incorrect_field_name PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestNotRequiredOutput::test_not_required_output_for_dict PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestNotRequiredOutput::test_not_required_output_for_object PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_used_for_dict PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_used_for_object PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_dict PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_object PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_dotted_source PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_multiple_dotted_source PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_nested_serializer PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultOutput::test_default_for_allow_null PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestCacheSerializerData::test_cache_serializer_data PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultInclusions::test_default_should_included_on_create PASSED [ 79%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultInclusions::test_default_should_be_included_on_update PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDefaultInclusions::test_default_should_not_be_included_on_partial_update PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSerializerValidationWithCompiledRegexField::test_validation_success PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::Test2555Regression::test_serializer_context PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::Test4606Regression::test_4606_regression PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_declared_field_disabling PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_meta_field_disabling PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_multiple_inheritance PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestDeclaredFieldInheritance::test_field_ordering PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::Test8301Regression::test_ReturnDict_merging PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSetValueMethod::test_no_keys PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSetValueMethod::test_one_key PASSED [ 80%]
[2024-11-23T00:19:35.793Z] tests/test_serializer.py::TestSetValueMethod::test_nested_key PASSED [ 80%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_bulk_create_errors PASSED [ 80%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_bulk_create_success PASSED [ 80%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_list_datatype PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_single_datatype PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_bulk_update.py::BulkCreateSerializerTests::test_invalid_single_object PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializer::test_validate PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializer::test_validate_html_input PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializer::test_list_serializer_is_subscriptable PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_create PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_serialize PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate_html_input PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_update_allow_custom_child_validation PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_validate PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_create PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_serialize PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializer::test_validate_html_input PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_true[False] PASSED [ 81%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_true[True] PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_false[False] PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListSerializerAllowEmpty::test_allow_empty_false[True] PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate_html_input PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestListSerializerClass::test_list_serializer_class_validate PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_partial_listfield PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_partial_multiplechoice PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_allow_empty_true PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_allow_empty_true PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_allow_empty_false PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_allow_empty_false PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_as_field_allow_empty_true PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_as_field_allow_empty_true PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_as_field_allow_empty_false PASSED [ 82%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestSerializerPartialUsage::test_update_as_field_allow_empty_false PASSED [ 83%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_json PASSED [ 83%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_multipart PASSED [ 83%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_two_items PASSED [ 83%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_four_items PASSED [ 83%]
[2024-11-23T00:19:35.794Z] tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_six_items PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_lists.py::TestToRepresentationManagerCheck::test FAILED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_validate PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_empty PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_no_data PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_json_validate PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_multipart_validate PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_allowed_if_allow_null_is_set PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_is_not_allowed_if_allow_null_is_not_set PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_run_the_field_validation_even_if_the_field_is_null PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_allowed_if_allow_empty_is_set PASSED [ 83%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_not_allowed_if_allow_empty_is_set_to_false PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_json PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_multipart PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_json_validate PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_multipart_validate PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedWriteErrors::test_dotted_source_field_error PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedWriteErrors::test_nested_serializer_error PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedNonRelationalFieldWrite::test_nested_serializer_create_and_update SKIPPED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_serializer_nested.py::TestNestedNonRelationalFieldWrite::test_dotted_source_field_create_and_update SKIPPED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_settings.py::TestSettings::test_compatibility_with_override_settings PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_settings.py::TestSettings::test_import_error_message_maintained PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_settings.py::TestSettings::test_pagination_settings PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_settings.py::TestSettings::test_warning_raised_on_removed_setting PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_settings.py::TestSettingTypes::test_settings_consistently_coerced_to_list PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_status.py::TestStatus::test_status_categories PASSED [ 84%]
[2024-11-23T00:19:36.044Z] tests/test_templates.py::test_base_template_with_context PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templates.py::test_base_template_with_no_context PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_add_nested_class PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_add_query_param_with_non_latin_character PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_as_string_with_none PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_break_long_lines PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_boolean_or_none PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_dict PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_hyperlink PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_list PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_object PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_simple_string PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_email PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_hyperlink PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_string_newlines PASSED [ 85%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_format_value_table PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::TemplateTagTests::test_get_pagination_html PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::Issue1386Tests::test_issue_1386 PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::Issue1386Tests::test_smart_urlquote_wrapper_handles_value_error PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::URLizerTests::test_json_with_url PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::URLizerTests::test_template_render_with_autoescape PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::URLizerTests::test_template_render_with_noautoescape PASSED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_default_actions SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_default_actions_and_single_custom_action SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_default_actions_and_single_custom_action_two_methods SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_multiple_nested_routes SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_multiple_resources_with_multiple_nested_routes SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_schema_with_empty_links SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_templatetags.py::SchemaLinksTests::test_single_action SKIPPED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_testing.py::TestAPITestClient::test_can_logout FAILED [ 86%]
[2024-11-23T00:19:36.044Z] tests/test_testing.py::TestAPITestClient::test_credentials FAILED [ 86%]
[2024-11-23T00:19:36.295Z] tests/test_testing.py::TestAPITestClient::test_csrf_exempt_by_default FAILED [ 87%]
[2024-11-23T00:19:36.295Z] tests/test_testing.py::TestAPITestClient::test_empty_post_uses_default_boolean_value FAILED [ 87%]
[2024-11-23T00:19:36.545Z] tests/test_testing.py::TestAPITestClient::test_explicitly_enforce_csrf_checks FAILED [ 87%]
[2024-11-23T00:19:36.545Z] tests/test_testing.py::TestAPITestClient::test_follow_307_308_preserve_kwargs FAILED [ 87%]
[2024-11-23T00:19:36.545Z] tests/test_testing.py::TestAPITestClient::test_follow_redirect FAILED [ 87%]
[2024-11-23T00:19:36.795Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_sessions FAILED [ 87%]
[2024-11-23T00:19:37.045Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_token FAILED [ 87%]
[2024-11-23T00:19:37.296Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user FAILED [ 87%]
[2024-11-23T00:19:37.546Z] tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user_and_token FAILED [ 87%]
[2024-11-23T00:19:37.546Z] tests/test_testing.py::TestAPITestClient::test_invalid_multipart_data PASSED [ 87%]
[2024-11-23T00:19:37.796Z] tests/test_testing.py::TestAPITestClient::test_logout_resets_force_authenticate FAILED [ 87%]
[2024-11-23T00:19:38.046Z] tests/test_testing.py::TestAPIRequestFactory::test_csrf_exempt_by_default FAILED [ 87%]
[2024-11-23T00:19:38.046Z] tests/test_testing.py::TestAPIRequestFactory::test_empty_request_content_type PASSED [ 87%]
[2024-11-23T00:19:38.297Z] tests/test_testing.py::TestAPIRequestFactory::test_explicitly_enforce_csrf_checks FAILED [ 87%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestAPIRequestFactory::test_force_authenticate FAILED [ 87%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestAPIRequestFactory::test_invalid_format PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestAPIRequestFactory::test_request_factory_url_arguments PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestAPIRequestFactory::test_request_factory_url_arguments_with_unicode PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestAPIRequestFactory::test_upload_file PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestUrlPatternTestCase::test_urlpatterns FAILED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_testing.py::TestExistingPatterns::test_urlpatterns FAILED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_throttling.py::ThrottlingTests::test_minutes_fields PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_throttling.py::ThrottlingTests::test_next_rate_remains_constant_if_followed PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_throttling.py::ThrottlingTests::test_non_time_throttle PASSED [ 88%]
[2024-11-23T00:19:38.547Z] tests/test_throttling.py::ThrottlingTests::test_request_throttling_expires PASSED [ 88%]
[2024-11-23T00:19:38.797Z] tests/test_throttling.py::ThrottlingTests::test_request_throttling_is_per_user FAILED [ 88%]
[2024-11-23T00:19:38.797Z] tests/test_throttling.py::ThrottlingTests::test_request_throttling_multiple_throttles PASSED [ 88%]
[2024-11-23T00:19:38.797Z] tests/test_throttling.py::ThrottlingTests::test_requests_are_throttled PASSED [ 88%]
[2024-11-23T00:19:38.797Z] tests/test_throttling.py::ThrottlingTests::test_seconds_fields PASSED [ 88%]
[2024-11-23T00:19:38.797Z] tests/test_throttling.py::ThrottlingTests::test_throttle_rate_change_negative PASSED [ 88%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::ScopedRateThrottleTests::test_get_cache_key_returns_correct_key_if_user_is_authenticated FAILED [ 88%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::ScopedRateThrottleTests::test_scoped_rate_throttle PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::ScopedRateThrottleTests::test_unscoped_view_not_throttled PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::IdWithXffBasicTests::test_accepts_request_under_limit PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::IdWithXffBasicTests::test_denies_request_over_limit PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::XffSpoofingTests::test_xff_spoofing_doesnt_change_machine_id_with_one_app_proxy PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::XffSpoofingTests::test_xff_spoofing_doesnt_change_machine_id_with_two_app_proxies PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::XffUniqueMachinesTest::test_unique_clients_are_counted_independently_with_one_proxy PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::XffUniqueMachinesTest::test_unique_clients_are_counted_independently_with_two_proxies PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::BaseThrottleTests::test_allow_request_raises_not_implemented_error PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_allow_request_returns_true_if_key_is_none PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_allow_request_returns_true_if_rate_is_none PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_get_cache_key_raises_not_implemented_error PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_get_rate_raises_error_if_scope_is_missing PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_parse_rate_returns_tuple_with_none_if_rate_not_provided PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_throttle_raises_error_if_rate_is_missing PASSED [ 89%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_wait_returns_correct_waiting_time_without_history PASSED [ 90%]
[2024-11-23T00:19:39.047Z] tests/test_throttling.py::SimpleRateThrottleTests::test_wait_returns_none_if_there_are_no_available_requests PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_throttling.py::AnonRateThrottleTests::test_authenticated_user_not_affected FAILED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_throttling.py::AnonRateThrottleTests::test_get_cache_key_returns_correct_value PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_path PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_re_path PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_default_args PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_default_args_django2 PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix_django2 PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_format_suffix_django2_args PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_included_urls PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_included_urls_mixed PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_trailing_slash PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_urlpatterns.py::FormatSuffixTests::test_trailing_slash_django2 PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_broken_url_breadcrumbs_handled_gracefully PASSED [ 90%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_action_name_kwarg PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_action_suffix_kwarg PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_detail_action_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_list_action_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_modelviewset_resource_instance_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_nested_resource_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_nested_resource_instance_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_resource_instance_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_resource_instance_customname_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_resource_root_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::BreadcrumbTests::test_root_breadcrumbs PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::JsonFloatTests::test_dumps PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::JsonFloatTests::test_loads PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::NonStrictJsonFloatTests::test_dumps PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::NonStrictJsonFloatTests::test_loads PASSED [ 91%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::UrlsReplaceQueryParamTests::test_invalid_unicode PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::UrlsReplaceQueryParamTests::test_valid_unicode_preserved PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::UrlsReplaceQueryParamTests::test_valid_unicode_replaced PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::UrlsRemoveQueryParamTests::test_invalid_unicode PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::UrlsRemoveQueryParamTests::test_valid_unicode_removed PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::LazyFormatTests::test_it_formats_correctly PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::LazyFormatTests::test_it_formats_lazily PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_utils.py::ModelMetaNamedTupleNames::test_named_tuple_names PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_validation.py::TestNestedValidationError::test_nested_validation_error_detail PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_validation.py::TestPreSaveValidationExclusionsSerializer::test_renamed_fields_are_model_validated PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_validation.py::TestCustomValidationMethods::test_custom_validation_method_is_executed PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_validation.py::TestCustomValidationMethods::test_custom_validation_method_passing PASSED [ 92%]
[2024-11-23T00:19:39.298Z] tests/test_validation.py::TestAvoidValidation::test_serializer_errors_has_only_invalid_data_error PASSED [ 92%]
[2024-11-23T00:19:39.548Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_fail FAILED [ 92%]
[2024-11-23T00:19:39.548Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_serializer_fails PASSED [ 92%]
[2024-11-23T00:19:39.548Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_serializer_success PASSED [ 93%]
[2024-11-23T00:19:39.798Z] tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_success FAILED [ 93%]
[2024-11-23T00:19:39.798Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_choices PASSED [ 93%]
[2024-11-23T00:19:39.798Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_mixed_choices PASSED [ 93%]
[2024-11-23T00:19:39.798Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_nested_choices PASSED [ 93%]
[2024-11-23T00:19:39.798Z] tests/test_validation.py::TestChoiceFieldChoicesValidate::test_single_choices PASSED [ 93%]
[2024-11-23T00:19:39.799Z] tests/test_validation.py::TestRegexSerializer::test_regex_repr PASSED [ 93%]
[2024-11-23T00:19:39.799Z] tests/test_validation_error.py::TestValidationErrorWithFullDetails::test_class_based_view_exception_handler PASSED [ 93%]
[2024-11-23T00:19:39.799Z] tests/test_validation_error.py::TestValidationErrorWithFullDetails::test_function_based_view_exception_handler PASSED [ 93%]
[2024-11-23T00:19:39.799Z] tests/test_validation_error.py::TestValidationErrorWithCodes::test_class_based_view_exception_handler PASSED [ 93%]
[2024-11-23T00:19:39.799Z] tests/test_validation_error.py::TestValidationErrorWithCodes::test_function_based_view_exception_handler PASSED [ 93%]
[2024-11-23T00:19:39.799Z] tests/test_validation_error.py::TestValidationErrorConvertsTuplesToLists::test_validation_error_details PASSED [ 93%]
[2024-11-23T00:19:40.049Z] tests/test_validators.py::TestUniquenessValidation::test_doesnt_pollute_model FAILED [ 93%]
[2024-11-23T00:19:40.299Z] tests/test_validators.py::TestUniquenessValidation::test_is_not_unique FAILED [ 93%]
[2024-11-23T00:19:40.549Z] tests/test_validators.py::TestUniquenessValidation::test_is_unique FAILED [ 93%]
[2024-11-23T00:19:40.800Z] tests/test_validators.py::TestUniquenessValidation::test_related_model_is_unique FAILED [ 93%]
[2024-11-23T00:19:41.050Z] tests/test_validators.py::TestUniquenessValidation::test_relation_is_not_unique FAILED [ 94%]
[2024-11-23T00:19:41.300Z] tests/test_validators.py::TestUniquenessValidation::test_repr FAILED [ 94%]
[2024-11-23T00:19:41.550Z] tests/test_validators.py::TestUniquenessValidation::test_updated_instance_excluded FAILED [ 94%]
[2024-11-23T00:19:41.800Z] tests/test_validators.py::TestUniquenessValidation::test_value_error_treated_as_not_unique FAILED [ 94%]
[2024-11-23T00:19:42.051Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_allow_explict_override FAILED [ 94%]
[2024-11-23T00:19:42.301Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_fields_with_source FAILED [ 94%]
[2024-11-23T00:19:42.551Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_multiple_fields_with_same_source FAILED [ 94%]
[2024-11-23T00:19:42.801Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_do_not_ignore_validation_for_null_fields FAILED [ 94%]
[2024-11-23T00:19:43.052Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_filter_queryset_do_not_skip_existing_attribute FAILED [ 94%]
[2024-11-23T00:19:43.302Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_excluded_fields FAILED [ 94%]
[2024-11-23T00:19:43.552Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_read_only_fields FAILED [ 94%]
[2024-11-23T00:19:43.802Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_null_fields FAILED [ 94%]
[2024-11-23T00:19:44.052Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_unchanged_fields FAILED [ 94%]
[2024-11-23T00:19:44.303Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_is_not_unique_together FAILED [ 94%]
[2024-11-23T00:19:44.553Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_is_unique_together FAILED [ 94%]
[2024-11-23T00:19:44.803Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default FAILED [ 95%]
[2024-11-23T00:19:45.053Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default_and_source FAILED [ 95%]
[2024-11-23T00:19:45.053Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_repr FAILED [ 95%]
[2024-11-23T00:19:45.304Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_unique_together_is_required FAILED [ 95%]
[2024-11-23T00:19:45.554Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_updated_instance_excluded_from_unique_together FAILED [ 95%]
[2024-11-23T00:19:45.804Z] tests/test_validators.py::TestUniquenessTogetherValidation::test_writeable_fields_with_source FAILED [ 95%]
[2024-11-23T00:19:46.054Z] tests/test_validators.py::TestUniqueConstraintValidation::test_repr FAILED [ 95%]
[2024-11-23T00:19:46.305Z] tests/test_validators.py::TestUniqueConstraintValidation::test_single_field_uniq_validators FAILED [ 95%]
[2024-11-23T00:19:46.555Z] tests/test_validators.py::TestUniqueConstraintValidation::test_unique_together_field FAILED [ 95%]
[2024-11-23T00:19:46.805Z] tests/test_validators.py::TestUniquenessForDateValidation::test_is_not_unique_for_date FAILED [ 95%]
[2024-11-23T00:19:47.055Z] tests/test_validators.py::TestUniquenessForDateValidation::test_is_unique_for_date FAILED [ 95%]
[2024-11-23T00:19:47.305Z] tests/test_validators.py::TestUniquenessForDateValidation::test_repr FAILED [ 95%]
[2024-11-23T00:19:47.556Z] tests/test_validators.py::TestUniquenessForDateValidation::test_updated_instance_excluded_from_unique_for_date FAILED [ 95%]
[2024-11-23T00:19:48.106Z] tests/test_validators.py::UniqueForMonthTests::test_not_unique_for_month FAILED [ 95%]
[2024-11-23T00:19:48.106Z] tests/test_validators.py::UniqueForMonthTests::test_unique_for_month FAILED [ 95%]
[2024-11-23T00:19:48.356Z] tests/test_validators.py::UniqueForYearTests::test_not_unique_for_year FAILED [ 95%]
[2024-11-23T00:19:48.606Z] tests/test_validators.py::UniqueForYearTests::test_unique_for_year FAILED [ 96%]
[2024-11-23T00:19:48.606Z] tests/test_validators.py::TestHiddenFieldUniquenessForDateValidation::test_repr_date_field_included PASSED [ 96%]
[2024-11-23T00:19:48.606Z] tests/test_validators.py::TestHiddenFieldUniquenessForDateValidation::test_repr_date_field_not_included PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_validators.py::ValidatorsTests::test_equality_operator PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_data_error PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_type_error PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_validators.py::ValidatorsTests::test_qs_exists_handles_value_error PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_validators.py::ValidatorsTests::test_validator_raises_error_if_not_all_fields_are_provided PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_validators.py::ValidatorsTests::test_validator_raises_error_when_abstract_method_called PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestRequestVersion::test_unversioned PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestRequestVersion::test_query_param_versioning PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestRequestVersion::test_host_name_versioning PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestRequestVersion::test_accept_header_versioning PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestRequestVersion::test_url_path_versioning PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestRequestVersion::test_namespace_versioning PASSED [ 96%]
[2024-11-23T00:19:48.607Z] tests/test_versioning.py::TestURLReversing::test_reverse_host_name_versioning PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestURLReversing::test_reverse_namespace_versioning FAILED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestURLReversing::test_reverse_query_param_versioning FAILED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestURLReversing::test_reverse_unversioned FAILED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestURLReversing::test_reverse_url_path_versioning FAILED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_query_param_versioning PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_host_name_versioning PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_accept_header_versioning PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_url_path_versioning PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestInvalidVersion::test_invalid_namespace_versioning PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_without_default PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_with_default PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_with_default PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_without_default_but_none_allowed PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestAllowedAndDefaultVersion::test_missing_with_default_and_none_allowed PASSED [ 97%]
[2024-11-23T00:19:48.857Z] tests/test_versioning.py::TestHyperlinkedRelatedField::test_bug_2489 PASSED [ 97%]
[2024-11-23T00:19:49.116Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_nested FAILED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v1 FAILED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v2 FAILED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_non_api_url_is_properly_reversed_regardless_of_the_version FAILED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::ClassBasedViewIntegrationTests::test_400_parse_error PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::FunctionBasedViewIntegrationTests::test_400_parse_error PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::TestCustomExceptionHandler::test_class_based_view_exception_handler PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::TestCustomExceptionHandler::test_function_based_view_exception_handler PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::TestCustomSettings::test_get_exception_handler PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::TestLoginRequiredMiddlewareCompat::test_class_based_view_opted_out PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_views.py::TestLoginRequiredMiddlewareCompat::test_function_based_view_opted_out PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_args_kwargs_request_action_map_on_self PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_head_request_against_viewset PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_actions PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_both_name_and_suffix PASSED [ 98%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_initialize_view_set_with_empty_actions PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_login_required_middleware_compat PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_viewset_action_attr PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::InitializeViewSetsTestCase::test_viewset_action_attr_for_extra_action PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionsTests::test_attr_name_check PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionsTests::test_extra_actions PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionsTests::test_should_only_return_decorated_methods PASSED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_action_names FAILED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_detail_view FAILED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_list_view FAILED [ 99%]
[2024-11-23T00:19:49.116Z] tests/test_viewsets.py::GetExtraActionUrlMapTests::test_uninitialized_view PASSED [ 99%]
[2024-11-23T00:19:49.367Z] tests/test_viewsets.py::ReverseActionTests::test_custom_basename PASSED [ 99%]
[2024-11-23T00:19:49.367Z] tests/test_viewsets.py::ReverseActionTests::test_default_basename PASSED [ 99%]
[2024-11-23T00:19:49.367Z] tests/test_viewsets.py::ReverseActionTests::test_request_passing FAILED [ 99%]
[2024-11-23T00:19:49.367Z] tests/test_write_only_fields.py::WriteOnlyFieldTests::test_write_only_fields_are_not_present_on_output PASSED [ 99%]
[2024-11-23T00:19:49.367Z] tests/test_write_only_fields.py::WriteOnlyFieldTests::test_write_only_fields_are_present_on_input PASSED [100%]
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] ==================================== ERRORS ====================================
[2024-11-23T00:19:49.367Z] _ ERROR at teardown of AnonymousUserTests.test_get_raises_typeerror_when_anonymous_user_in_queryset_filter _
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2df230>
[2024-11-23T00:19:49.367Z] sql = 'SELECT %s AS "a" FROM "django_session" WHERE "django_session"."session_key" = %s LIMIT 1'
[2024-11-23T00:19:49.367Z] params = (1, 'vj14hwzdk19ahrlvd001iyxmsiisynyr')
[2024-11-23T00:19:49.367Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2df230>})
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.367Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.367Z] # ever set during testing).
[2024-11-23T00:19:49.367Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.367Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.367Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.367Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.367Z] if params is None:
[2024-11-23T00:19:49.367Z] # params default might be backend specific.
[2024-11-23T00:19:49.367Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.367Z] else:
[2024-11-23T00:19:49.367Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.367Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c098680>
[2024-11-23T00:19:49.367Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T00:19:49.367Z] params = (1, 'vj14hwzdk19ahrlvd001iyxmsiisynyr')
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.367Z] if params is None:
[2024-11-23T00:19:49.367Z] return super().execute(query)
[2024-11-23T00:19:49.367Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.367Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.367Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.367Z] > return super().execute(query, params)
[2024-11-23T00:19:49.367Z] E sqlite3.OperationalError: no such table: django_session
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.367Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.367Z]
[2024-11-23T00:19:49.368Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_raises_typeerror_when_anonymous_user_in_queryset_filter>
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def tearDown(self):
[2024-11-23T00:19:49.368Z] > self.client.logout()
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] tests/browsable_api/test_browsable_api.py:18:
[2024-11-23T00:19:49.368Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.368Z] rest_framework/test.py:340: in logout
[2024-11-23T00:19:49.368Z] if self.session:
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/test/client.py:815: in session
[2024-11-23T00:19:49.368Z] session.save()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:121: in save
[2024-11-23T00:19:49.368Z] return self.create()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:70: in create
[2024-11-23T00:19:49.368Z] self._session_key = self._get_new_session_key()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/base.py:196: in _get_new_session_key
[2024-11-23T00:19:49.368Z] if not self.exists(session_key):
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:63: in exists
[2024-11-23T00:19:49.368Z] return self.model.objects.filter(session_key=session_key).exists()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1288: in exists
[2024-11-23T00:19:49.368Z] return self.query.has_results(using=self.db)
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/sql/query.py:660: in has_results
[2024-11-23T00:19:49.368Z] return compiler.has_results()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1542: in has_results
[2024-11-23T00:19:49.368Z] return bool(self.execute_sql(SINGLE))
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T00:19:49.368Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.368Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.368Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.368Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.368Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.368Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.368Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c098680>
[2024-11-23T00:19:49.368Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T00:19:49.368Z] params = (1, 'vj14hwzdk19ahrlvd001iyxmsiisynyr')
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.368Z] if params is None:
[2024-11-23T00:19:49.368Z] return super().execute(query)
[2024-11-23T00:19:49.368Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.368Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.368Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.368Z] > return super().execute(query, params)
[2024-11-23T00:19:49.368Z] E django.db.utils.OperationalError: no such table: django_session
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.368Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.368Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.368Z] Traceback (most recent call last):
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.368Z] response = get_response(request)
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.368Z] response = self.process_request(request)
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.368Z] host = request.get_host()
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.368Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.368Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.368Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T00:19:49.368Z] _ ERROR at teardown of AnonymousUserTests.test_get_returns_http_forbidden_when_anonymous_user _
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c7f04d0>
[2024-11-23T00:19:49.368Z] sql = 'SELECT %s AS "a" FROM "django_session" WHERE "django_session"."session_key" = %s LIMIT 1'
[2024-11-23T00:19:49.368Z] params = (1, 'sqzl6ifhskp4dblcv4vx1zn9qg5j5icm')
[2024-11-23T00:19:49.368Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c7f04d0>})
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.368Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.368Z] # ever set during testing).
[2024-11-23T00:19:49.368Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.368Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.368Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.368Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.368Z] if params is None:
[2024-11-23T00:19:49.368Z] # params default might be backend specific.
[2024-11-23T00:19:49.368Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.368Z] else:
[2024-11-23T00:19:49.368Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.368Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bec0>
[2024-11-23T00:19:49.368Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T00:19:49.368Z] params = (1, 'sqzl6ifhskp4dblcv4vx1zn9qg5j5icm')
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.368Z] if params is None:
[2024-11-23T00:19:49.368Z] return super().execute(query)
[2024-11-23T00:19:49.368Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.368Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.368Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.368Z] > return super().execute(query, params)
[2024-11-23T00:19:49.368Z] E sqlite3.OperationalError: no such table: django_session
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_returns_http_forbidden_when_anonymous_user>
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def tearDown(self):
[2024-11-23T00:19:49.368Z] > self.client.logout()
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] tests/browsable_api/test_browsable_api.py:18:
[2024-11-23T00:19:49.368Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.368Z] rest_framework/test.py:340: in logout
[2024-11-23T00:19:49.368Z] if self.session:
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/test/client.py:815: in session
[2024-11-23T00:19:49.368Z] session.save()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:121: in save
[2024-11-23T00:19:49.368Z] return self.create()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:70: in create
[2024-11-23T00:19:49.368Z] self._session_key = self._get_new_session_key()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/base.py:196: in _get_new_session_key
[2024-11-23T00:19:49.368Z] if not self.exists(session_key):
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/contrib/sessions/backends/db.py:63: in exists
[2024-11-23T00:19:49.368Z] return self.model.objects.filter(session_key=session_key).exists()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1288: in exists
[2024-11-23T00:19:49.368Z] return self.query.has_results(using=self.db)
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/sql/query.py:660: in has_results
[2024-11-23T00:19:49.368Z] return compiler.has_results()
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1542: in has_results
[2024-11-23T00:19:49.368Z] return bool(self.execute_sql(SINGLE))
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T00:19:49.368Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.368Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.368Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.368Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.368Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.368Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.368Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bec0>
[2024-11-23T00:19:49.368Z] query = 'SELECT ? AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1'
[2024-11-23T00:19:49.368Z] params = (1, 'sqzl6ifhskp4dblcv4vx1zn9qg5j5icm')
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.368Z] if params is None:
[2024-11-23T00:19:49.368Z] return super().execute(query)
[2024-11-23T00:19:49.368Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.368Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.368Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.368Z] > return super().execute(query, params)
[2024-11-23T00:19:49.368Z] E django.db.utils.OperationalError: no such table: django_session
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.368Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.368Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.368Z] Traceback (most recent call last):
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.368Z] response = get_response(request)
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.368Z] response = self.process_request(request)
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.368Z] host = request.get_host()
[2024-11-23T00:19:49.368Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.368Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.368Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.368Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T00:19:49.368Z] ____________ ERROR at setup of SearchFilterTests.test_exact_search _____________
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.368Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.368Z] params = ('z', 'abc')
[2024-11-23T00:19:49.368Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.368Z]
[2024-11-23T00:19:49.368Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.368Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.369Z] # ever set during testing).
[2024-11-23T00:19:49.369Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.369Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.369Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.369Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.369Z] # params default might be backend specific.
[2024-11-23T00:19:49.369Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.369Z] else:
[2024-11-23T00:19:49.369Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.369Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.369Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.369Z] params = ('z', 'abc')
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.369Z] return super().execute(query)
[2024-11-23T00:19:49.369Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.369Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.369Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.369Z] > return super().execute(query, params)
[2024-11-23T00:19:49.369Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] @classmethod
[2024-11-23T00:19:49.369Z] def setUpTestData(cls):
[2024-11-23T00:19:49.369Z] # Sequence of title/text is:
[2024-11-23T00:19:49.369Z] #
[2024-11-23T00:19:49.369Z] # z abc
[2024-11-23T00:19:49.369Z] # zz bcd
[2024-11-23T00:19:49.369Z] # zzz cde
[2024-11-23T00:19:49.369Z] # ...
[2024-11-23T00:19:49.369Z] for idx in range(10):
[2024-11-23T00:19:49.369Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.369Z] text = (
[2024-11-23T00:19:49.369Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.369Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.369Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.369Z] )
[2024-11-23T00:19:49.369Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.369Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.369Z] self.save_base(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.369Z] updated = self._save_table(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.369Z] results = self._do_insert(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.369Z] return manager._insert(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.369Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.369Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.369Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.369Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.369Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.369Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.369Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.369Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.369Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.369Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.369Z] params = ('z', 'abc')
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.369Z] return super().execute(query)
[2024-11-23T00:19:49.369Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.369Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.369Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.369Z] > return super().execute(query, params)
[2024-11-23T00:19:49.369Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.369Z] ____________ ERROR at setup of SearchFilterTests.test_regexp_search ____________
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.369Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.369Z] params = ('z', 'abc')
[2024-11-23T00:19:49.369Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.369Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.369Z] # ever set during testing).
[2024-11-23T00:19:49.369Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.369Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.369Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.369Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.369Z] # params default might be backend specific.
[2024-11-23T00:19:49.369Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.369Z] else:
[2024-11-23T00:19:49.369Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.369Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.369Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.369Z] params = ('z', 'abc')
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.369Z] return super().execute(query)
[2024-11-23T00:19:49.369Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.369Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.369Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.369Z] > return super().execute(query, params)
[2024-11-23T00:19:49.369Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] @classmethod
[2024-11-23T00:19:49.369Z] def setUpTestData(cls):
[2024-11-23T00:19:49.369Z] # Sequence of title/text is:
[2024-11-23T00:19:49.369Z] #
[2024-11-23T00:19:49.369Z] # z abc
[2024-11-23T00:19:49.369Z] # zz bcd
[2024-11-23T00:19:49.369Z] # zzz cde
[2024-11-23T00:19:49.369Z] # ...
[2024-11-23T00:19:49.369Z] for idx in range(10):
[2024-11-23T00:19:49.369Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.369Z] text = (
[2024-11-23T00:19:49.369Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.369Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.369Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.369Z] )
[2024-11-23T00:19:49.369Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.369Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.369Z] self.save_base(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.369Z] updated = self._save_table(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.369Z] results = self._do_insert(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.369Z] return manager._insert(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.369Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.369Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.369Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.369Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.369Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.369Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.369Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.369Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.369Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.369Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.369Z] params = ('z', 'abc')
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.369Z] return super().execute(query)
[2024-11-23T00:19:49.369Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.369Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.369Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.369Z] > return super().execute(query, params)
[2024-11-23T00:19:49.369Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.369Z] _______________ ERROR at setup of SearchFilterTests.test_search ________________
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.369Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.369Z] params = ('z', 'abc')
[2024-11-23T00:19:49.369Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.369Z]
[2024-11-23T00:19:49.369Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.369Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.369Z] # ever set during testing).
[2024-11-23T00:19:49.369Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.369Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.369Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.369Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.369Z] if params is None:
[2024-11-23T00:19:49.370Z] # params default might be backend specific.
[2024-11-23T00:19:49.370Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.370Z] else:
[2024-11-23T00:19:49.370Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.370Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.370Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.370Z] params = ('z', 'abc')
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.370Z] if params is None:
[2024-11-23T00:19:49.370Z] return super().execute(query)
[2024-11-23T00:19:49.370Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.370Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.370Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.370Z] > return super().execute(query, params)
[2024-11-23T00:19:49.370Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] @classmethod
[2024-11-23T00:19:49.370Z] def setUpTestData(cls):
[2024-11-23T00:19:49.370Z] # Sequence of title/text is:
[2024-11-23T00:19:49.370Z] #
[2024-11-23T00:19:49.370Z] # z abc
[2024-11-23T00:19:49.370Z] # zz bcd
[2024-11-23T00:19:49.370Z] # zzz cde
[2024-11-23T00:19:49.370Z] # ...
[2024-11-23T00:19:49.370Z] for idx in range(10):
[2024-11-23T00:19:49.370Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.370Z] text = (
[2024-11-23T00:19:49.370Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.370Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.370Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.370Z] )
[2024-11-23T00:19:49.370Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.370Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.370Z] self.save_base(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.370Z] updated = self._save_table(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.370Z] results = self._do_insert(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.370Z] return manager._insert(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.370Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.370Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.370Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.370Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.370Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.370Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.370Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.370Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.370Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.370Z] params = ('z', 'abc')
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.370Z] if params is None:
[2024-11-23T00:19:49.370Z] return super().execute(query)
[2024-11-23T00:19:49.370Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.370Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.370Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.370Z] > return super().execute(query, params)
[2024-11-23T00:19:49.370Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.370Z] _ ERROR at setup of SearchFilterTests.test_search_field_with_additional_transforms _
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.370Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.370Z] params = ('z', 'abc')
[2024-11-23T00:19:49.370Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.370Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.370Z] # ever set during testing).
[2024-11-23T00:19:49.370Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.370Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.370Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.370Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.370Z] if params is None:
[2024-11-23T00:19:49.370Z] # params default might be backend specific.
[2024-11-23T00:19:49.370Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.370Z] else:
[2024-11-23T00:19:49.370Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.370Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.370Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.370Z] params = ('z', 'abc')
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.370Z] if params is None:
[2024-11-23T00:19:49.370Z] return super().execute(query)
[2024-11-23T00:19:49.370Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.370Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.370Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.370Z] > return super().execute(query, params)
[2024-11-23T00:19:49.370Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] @classmethod
[2024-11-23T00:19:49.370Z] def setUpTestData(cls):
[2024-11-23T00:19:49.370Z] # Sequence of title/text is:
[2024-11-23T00:19:49.370Z] #
[2024-11-23T00:19:49.370Z] # z abc
[2024-11-23T00:19:49.370Z] # zz bcd
[2024-11-23T00:19:49.370Z] # zzz cde
[2024-11-23T00:19:49.370Z] # ...
[2024-11-23T00:19:49.370Z] for idx in range(10):
[2024-11-23T00:19:49.370Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.370Z] text = (
[2024-11-23T00:19:49.370Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.370Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.370Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.370Z] )
[2024-11-23T00:19:49.370Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.370Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.370Z] self.save_base(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.370Z] updated = self._save_table(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.370Z] results = self._do_insert(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.370Z] return manager._insert(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.370Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.370Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.370Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.370Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.370Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.370Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.370Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.370Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.370Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.370Z] params = ('z', 'abc')
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.370Z] if params is None:
[2024-11-23T00:19:49.370Z] return super().execute(query)
[2024-11-23T00:19:49.370Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.370Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.370Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.370Z] > return super().execute(query, params)
[2024-11-23T00:19:49.370Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.370Z] ___ ERROR at setup of SearchFilterTests.test_search_field_with_custom_lookup ___
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.370Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.370Z] params = ('z', 'abc')
[2024-11-23T00:19:49.370Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.370Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.370Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.370Z] # ever set during testing).
[2024-11-23T00:19:49.370Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.370Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.370Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.370Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.370Z] if params is None:
[2024-11-23T00:19:49.370Z] # params default might be backend specific.
[2024-11-23T00:19:49.370Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.370Z] else:
[2024-11-23T00:19:49.370Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.370Z]
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.371Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.371Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.371Z] params = ('z', 'abc')
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.371Z] if params is None:
[2024-11-23T00:19:49.371Z] return super().execute(query)
[2024-11-23T00:19:49.371Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.371Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.371Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.371Z] > return super().execute(query, params)
[2024-11-23T00:19:49.371Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] @classmethod
[2024-11-23T00:19:49.371Z] def setUpTestData(cls):
[2024-11-23T00:19:49.371Z] # Sequence of title/text is:
[2024-11-23T00:19:49.371Z] #
[2024-11-23T00:19:49.371Z] # z abc
[2024-11-23T00:19:49.371Z] # zz bcd
[2024-11-23T00:19:49.371Z] # zzz cde
[2024-11-23T00:19:49.371Z] # ...
[2024-11-23T00:19:49.371Z] for idx in range(10):
[2024-11-23T00:19:49.371Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.371Z] text = (
[2024-11-23T00:19:49.371Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.371Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.371Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.371Z] )
[2024-11-23T00:19:49.371Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.371Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.371Z] self.save_base(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.371Z] updated = self._save_table(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.371Z] results = self._do_insert(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.371Z] return manager._insert(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.371Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.371Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.371Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.371Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.371Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.371Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.371Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.371Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.371Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.371Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.371Z] params = ('z', 'abc')
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.371Z] if params is None:
[2024-11-23T00:19:49.371Z] return super().execute(query)
[2024-11-23T00:19:49.371Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.371Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.371Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.371Z] > return super().execute(query, params)
[2024-11-23T00:19:49.371Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.371Z] ______ ERROR at setup of SearchFilterTests.test_search_field_with_escapes ______
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.371Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.371Z] params = ('z', 'abc')
[2024-11-23T00:19:49.371Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.371Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.371Z] # ever set during testing).
[2024-11-23T00:19:49.371Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.371Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.371Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.371Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.371Z] if params is None:
[2024-11-23T00:19:49.371Z] # params default might be backend specific.
[2024-11-23T00:19:49.371Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.371Z] else:
[2024-11-23T00:19:49.371Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.371Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.371Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.371Z] params = ('z', 'abc')
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.371Z] if params is None:
[2024-11-23T00:19:49.371Z] return super().execute(query)
[2024-11-23T00:19:49.371Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.371Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.371Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.371Z] > return super().execute(query, params)
[2024-11-23T00:19:49.371Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] @classmethod
[2024-11-23T00:19:49.371Z] def setUpTestData(cls):
[2024-11-23T00:19:49.371Z] # Sequence of title/text is:
[2024-11-23T00:19:49.371Z] #
[2024-11-23T00:19:49.371Z] # z abc
[2024-11-23T00:19:49.371Z] # zz bcd
[2024-11-23T00:19:49.371Z] # zzz cde
[2024-11-23T00:19:49.371Z] # ...
[2024-11-23T00:19:49.371Z] for idx in range(10):
[2024-11-23T00:19:49.371Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.371Z] text = (
[2024-11-23T00:19:49.371Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.371Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.371Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.371Z] )
[2024-11-23T00:19:49.371Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.371Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.371Z] self.save_base(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.371Z] updated = self._save_table(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.371Z] results = self._do_insert(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.371Z] return manager._insert(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.371Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.371Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.371Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.371Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.371Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.371Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.371Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.371Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.371Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.371Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.371Z] params = ('z', 'abc')
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.371Z] if params is None:
[2024-11-23T00:19:49.371Z] return super().execute(query)
[2024-11-23T00:19:49.371Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.371Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.371Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.371Z] > return super().execute(query, params)
[2024-11-23T00:19:49.371Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.371Z] __ ERROR at setup of SearchFilterTests.test_search_field_with_multiple_words ___
[2024-11-23T00:19:49.371Z]
[2024-11-23T00:19:49.371Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.371Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.372Z] params = ('z', 'abc')
[2024-11-23T00:19:49.372Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.372Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.372Z] # ever set during testing).
[2024-11-23T00:19:49.372Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.372Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.372Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.372Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.372Z] if params is None:
[2024-11-23T00:19:49.372Z] # params default might be backend specific.
[2024-11-23T00:19:49.372Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.372Z] else:
[2024-11-23T00:19:49.372Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.372Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.372Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.372Z] params = ('z', 'abc')
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.372Z] if params is None:
[2024-11-23T00:19:49.372Z] return super().execute(query)
[2024-11-23T00:19:49.372Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.372Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.372Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.372Z] > return super().execute(query, params)
[2024-11-23T00:19:49.372Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] @classmethod
[2024-11-23T00:19:49.372Z] def setUpTestData(cls):
[2024-11-23T00:19:49.372Z] # Sequence of title/text is:
[2024-11-23T00:19:49.372Z] #
[2024-11-23T00:19:49.372Z] # z abc
[2024-11-23T00:19:49.372Z] # zz bcd
[2024-11-23T00:19:49.372Z] # zzz cde
[2024-11-23T00:19:49.372Z] # ...
[2024-11-23T00:19:49.372Z] for idx in range(10):
[2024-11-23T00:19:49.372Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.372Z] text = (
[2024-11-23T00:19:49.372Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.372Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.372Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.372Z] )
[2024-11-23T00:19:49.372Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.372Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.372Z] self.save_base(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.372Z] updated = self._save_table(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.372Z] results = self._do_insert(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.372Z] return manager._insert(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.372Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.372Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.372Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.372Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.372Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.372Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.372Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.372Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.372Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.372Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.372Z] params = ('z', 'abc')
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.372Z] if params is None:
[2024-11-23T00:19:49.372Z] return super().execute(query)
[2024-11-23T00:19:49.372Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.372Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.372Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.372Z] > return super().execute(query, params)
[2024-11-23T00:19:49.372Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.372Z] __ ERROR at setup of SearchFilterTests.test_search_field_with_null_characters __
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.372Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.372Z] params = ('z', 'abc')
[2024-11-23T00:19:49.372Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.372Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.372Z] # ever set during testing).
[2024-11-23T00:19:49.372Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.372Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.372Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.372Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.372Z] if params is None:
[2024-11-23T00:19:49.372Z] # params default might be backend specific.
[2024-11-23T00:19:49.372Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.372Z] else:
[2024-11-23T00:19:49.372Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.372Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.372Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.372Z] params = ('z', 'abc')
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.372Z] if params is None:
[2024-11-23T00:19:49.372Z] return super().execute(query)
[2024-11-23T00:19:49.372Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.372Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.372Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.372Z] > return super().execute(query, params)
[2024-11-23T00:19:49.372Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] @classmethod
[2024-11-23T00:19:49.372Z] def setUpTestData(cls):
[2024-11-23T00:19:49.372Z] # Sequence of title/text is:
[2024-11-23T00:19:49.372Z] #
[2024-11-23T00:19:49.372Z] # z abc
[2024-11-23T00:19:49.372Z] # zz bcd
[2024-11-23T00:19:49.372Z] # zzz cde
[2024-11-23T00:19:49.372Z] # ...
[2024-11-23T00:19:49.372Z] for idx in range(10):
[2024-11-23T00:19:49.372Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.372Z] text = (
[2024-11-23T00:19:49.372Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.372Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.372Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.372Z] )
[2024-11-23T00:19:49.372Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.372Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.372Z] self.save_base(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.372Z] updated = self._save_table(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.372Z] results = self._do_insert(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.372Z] return manager._insert(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.372Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.372Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.372Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.372Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.372Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.372Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.372Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.372Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.372Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.372Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.372Z] params = ('z', 'abc')
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.372Z] if params is None:
[2024-11-23T00:19:49.372Z] return super().execute(query)
[2024-11-23T00:19:49.372Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.372Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.372Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.372Z] > return super().execute(query, params)
[2024-11-23T00:19:49.372Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.372Z] ______ ERROR at setup of SearchFilterTests.test_search_field_with_quotes _______
[2024-11-23T00:19:49.372Z]
[2024-11-23T00:19:49.372Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.373Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.373Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.373Z] # ever set during testing).
[2024-11-23T00:19:49.373Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.373Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.373Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.373Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.373Z] if params is None:
[2024-11-23T00:19:49.373Z] # params default might be backend specific.
[2024-11-23T00:19:49.373Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.373Z] else:
[2024-11-23T00:19:49.373Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.373Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.373Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.373Z] if params is None:
[2024-11-23T00:19:49.373Z] return super().execute(query)
[2024-11-23T00:19:49.373Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.373Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.373Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.373Z] > return super().execute(query, params)
[2024-11-23T00:19:49.373Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] @classmethod
[2024-11-23T00:19:49.373Z] def setUpTestData(cls):
[2024-11-23T00:19:49.373Z] # Sequence of title/text is:
[2024-11-23T00:19:49.373Z] #
[2024-11-23T00:19:49.373Z] # z abc
[2024-11-23T00:19:49.373Z] # zz bcd
[2024-11-23T00:19:49.373Z] # zzz cde
[2024-11-23T00:19:49.373Z] # ...
[2024-11-23T00:19:49.373Z] for idx in range(10):
[2024-11-23T00:19:49.373Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.373Z] text = (
[2024-11-23T00:19:49.373Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.373Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.373Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.373Z] )
[2024-11-23T00:19:49.373Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.373Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.373Z] self.save_base(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.373Z] updated = self._save_table(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.373Z] results = self._do_insert(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.373Z] return manager._insert(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.373Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.373Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.373Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.373Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.373Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.373Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.373Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.373Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.373Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.373Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.373Z] if params is None:
[2024-11-23T00:19:49.373Z] return super().execute(query)
[2024-11-23T00:19:49.373Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.373Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.373Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.373Z] > return super().execute(query, params)
[2024-11-23T00:19:49.373Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.373Z] _ ERROR at setup of SearchFilterTests.test_search_returns_same_queryset_if_no_search_fields_or_terms_provided _
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.373Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.373Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.373Z] # ever set during testing).
[2024-11-23T00:19:49.373Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.373Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.373Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.373Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.373Z] if params is None:
[2024-11-23T00:19:49.373Z] # params default might be backend specific.
[2024-11-23T00:19:49.373Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.373Z] else:
[2024-11-23T00:19:49.373Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.373Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.373Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.373Z] if params is None:
[2024-11-23T00:19:49.373Z] return super().execute(query)
[2024-11-23T00:19:49.373Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.373Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.373Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.373Z] > return super().execute(query, params)
[2024-11-23T00:19:49.373Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] @classmethod
[2024-11-23T00:19:49.373Z] def setUpTestData(cls):
[2024-11-23T00:19:49.373Z] # Sequence of title/text is:
[2024-11-23T00:19:49.373Z] #
[2024-11-23T00:19:49.373Z] # z abc
[2024-11-23T00:19:49.373Z] # zz bcd
[2024-11-23T00:19:49.373Z] # zzz cde
[2024-11-23T00:19:49.373Z] # ...
[2024-11-23T00:19:49.373Z] for idx in range(10):
[2024-11-23T00:19:49.373Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.373Z] text = (
[2024-11-23T00:19:49.373Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.373Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.373Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.373Z] )
[2024-11-23T00:19:49.373Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.373Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.373Z] self.save_base(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.373Z] updated = self._save_table(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.373Z] results = self._do_insert(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.373Z] return manager._insert(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.373Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.373Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.373Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.373Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.373Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.373Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.373Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.373Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.373Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.373Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.373Z] if params is None:
[2024-11-23T00:19:49.373Z] return super().execute(query)
[2024-11-23T00:19:49.373Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.373Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.373Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.373Z] > return super().execute(query, params)
[2024-11-23T00:19:49.373Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.373Z] _____ ERROR at setup of SearchFilterTests.test_search_with_filter_subclass _____
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.373Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.373Z] params = ('z', 'abc')
[2024-11-23T00:19:49.373Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.373Z]
[2024-11-23T00:19:49.373Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.374Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.374Z] # ever set during testing).
[2024-11-23T00:19:49.374Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.374Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.374Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.374Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.374Z] # params default might be backend specific.
[2024-11-23T00:19:49.374Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.374Z] else:
[2024-11-23T00:19:49.374Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.374Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.374Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.374Z] params = ('z', 'abc')
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.374Z] return super().execute(query)
[2024-11-23T00:19:49.374Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.374Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.374Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.374Z] > return super().execute(query, params)
[2024-11-23T00:19:49.374Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] @classmethod
[2024-11-23T00:19:49.374Z] def setUpTestData(cls):
[2024-11-23T00:19:49.374Z] # Sequence of title/text is:
[2024-11-23T00:19:49.374Z] #
[2024-11-23T00:19:49.374Z] # z abc
[2024-11-23T00:19:49.374Z] # zz bcd
[2024-11-23T00:19:49.374Z] # zzz cde
[2024-11-23T00:19:49.374Z] # ...
[2024-11-23T00:19:49.374Z] for idx in range(10):
[2024-11-23T00:19:49.374Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.374Z] text = (
[2024-11-23T00:19:49.374Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.374Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.374Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.374Z] )
[2024-11-23T00:19:49.374Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.374Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.374Z] self.save_base(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.374Z] updated = self._save_table(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.374Z] results = self._do_insert(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.374Z] return manager._insert(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.374Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.374Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.374Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.374Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.374Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.374Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.374Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.374Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.374Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.374Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.374Z] params = ('z', 'abc')
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.374Z] return super().execute(query)
[2024-11-23T00:19:49.374Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.374Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.374Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.374Z] > return super().execute(query, params)
[2024-11-23T00:19:49.374Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.374Z] _ ERROR at setup of SearchFilterTests.test_search_with_nonstandard_search_param _
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.374Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.374Z] params = ('z', 'abc')
[2024-11-23T00:19:49.374Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.374Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.374Z] # ever set during testing).
[2024-11-23T00:19:49.374Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.374Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.374Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.374Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.374Z] # params default might be backend specific.
[2024-11-23T00:19:49.374Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.374Z] else:
[2024-11-23T00:19:49.374Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.374Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.374Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.374Z] params = ('z', 'abc')
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.374Z] return super().execute(query)
[2024-11-23T00:19:49.374Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.374Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.374Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.374Z] > return super().execute(query, params)
[2024-11-23T00:19:49.374Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] @classmethod
[2024-11-23T00:19:49.374Z] def setUpTestData(cls):
[2024-11-23T00:19:49.374Z] # Sequence of title/text is:
[2024-11-23T00:19:49.374Z] #
[2024-11-23T00:19:49.374Z] # z abc
[2024-11-23T00:19:49.374Z] # zz bcd
[2024-11-23T00:19:49.374Z] # zzz cde
[2024-11-23T00:19:49.374Z] # ...
[2024-11-23T00:19:49.374Z] for idx in range(10):
[2024-11-23T00:19:49.374Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.374Z] text = (
[2024-11-23T00:19:49.374Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.374Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.374Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.374Z] )
[2024-11-23T00:19:49.374Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.374Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.374Z] self.save_base(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.374Z] updated = self._save_table(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.374Z] results = self._do_insert(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.374Z] return manager._insert(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.374Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.374Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.374Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.374Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.374Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.374Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.374Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.374Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.374Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.374Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.374Z] params = ('z', 'abc')
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.374Z] return super().execute(query)
[2024-11-23T00:19:49.374Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.374Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.374Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.374Z] > return super().execute(query, params)
[2024-11-23T00:19:49.374Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.374Z] __________ ERROR at setup of SearchFilterTests.test_startswith_search __________
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>
[2024-11-23T00:19:49.374Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.374Z] params = ('z', 'abc')
[2024-11-23T00:19:49.374Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101310>})
[2024-11-23T00:19:49.374Z]
[2024-11-23T00:19:49.374Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.374Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.374Z] # ever set during testing).
[2024-11-23T00:19:49.374Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.374Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.374Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.374Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.374Z] if params is None:
[2024-11-23T00:19:49.375Z] # params default might be backend specific.
[2024-11-23T00:19:49.375Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.375Z] else:
[2024-11-23T00:19:49.375Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.375Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.375Z] params = ('z', 'abc')
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.375Z] if params is None:
[2024-11-23T00:19:49.375Z] return super().execute(query)
[2024-11-23T00:19:49.375Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.375Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.375Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.375Z] > return super().execute(query, params)
[2024-11-23T00:19:49.375Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] cls = <class 'tests.test_filters.SearchFilterTests'>
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] @classmethod
[2024-11-23T00:19:49.375Z] def setUpTestData(cls):
[2024-11-23T00:19:49.375Z] # Sequence of title/text is:
[2024-11-23T00:19:49.375Z] #
[2024-11-23T00:19:49.375Z] # z abc
[2024-11-23T00:19:49.375Z] # zz bcd
[2024-11-23T00:19:49.375Z] # zzz cde
[2024-11-23T00:19:49.375Z] # ...
[2024-11-23T00:19:49.375Z] for idx in range(10):
[2024-11-23T00:19:49.375Z] title = 'z' * (idx + 1)
[2024-11-23T00:19:49.375Z] text = (
[2024-11-23T00:19:49.375Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.375Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.375Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.375Z] )
[2024-11-23T00:19:49.375Z] > SearchFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] tests/test_filters.py:88:
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.375Z] self.save_base(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.375Z] updated = self._save_table(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.375Z] results = self._do_insert(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.375Z] return manager._insert(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.375Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.375Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.375Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.375Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.375Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.375Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.375Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.375Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37bd10>
[2024-11-23T00:19:49.375Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.375Z] params = ('z', 'abc')
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.375Z] if params is None:
[2024-11-23T00:19:49.375Z] return super().execute(query)
[2024-11-23T00:19:49.375Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.375Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.375Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.375Z] > return super().execute(query, params)
[2024-11-23T00:19:49.375Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.375Z] __ ERROR at setup of SearchFilterToManyTests.test_multiple_filter_conditions ___
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0e0ad0>
[2024-11-23T00:19:49.375Z] sql = 'INSERT INTO "tests_blog" ("name") VALUES (%s) RETURNING "tests_blog"."id"'
[2024-11-23T00:19:49.375Z] params = ('Blog 1',)
[2024-11-23T00:19:49.375Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0e0ad0>})
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.375Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.375Z] # ever set during testing).
[2024-11-23T00:19:49.375Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.375Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.375Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.375Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.375Z] if params is None:
[2024-11-23T00:19:49.375Z] # params default might be backend specific.
[2024-11-23T00:19:49.375Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.375Z] else:
[2024-11-23T00:19:49.375Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5205f0>
[2024-11-23T00:19:49.375Z] query = 'INSERT INTO "tests_blog" ("name") VALUES (?) RETURNING "tests_blog"."id"'
[2024-11-23T00:19:49.375Z] params = ('Blog 1',)
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.375Z] if params is None:
[2024-11-23T00:19:49.375Z] return super().execute(query)
[2024-11-23T00:19:49.375Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.375Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.375Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.375Z] > return super().execute(query, params)
[2024-11-23T00:19:49.375Z] E sqlite3.OperationalError: no such table: tests_blog
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] cls = <class 'tests.test_filters.SearchFilterToManyTests'>
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] @classmethod
[2024-11-23T00:19:49.375Z] def setUpTestData(cls):
[2024-11-23T00:19:49.375Z] > b1 = Blog.objects.create(name='Blog 1')
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] tests/test_filters.py:438:
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.375Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.375Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.375Z] self.save_base(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.375Z] updated = self._save_table(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.375Z] results = self._do_insert(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.375Z] return manager._insert(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.375Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.375Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.375Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.375Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.375Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.375Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.375Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.375Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5205f0>
[2024-11-23T00:19:49.375Z] query = 'INSERT INTO "tests_blog" ("name") VALUES (?) RETURNING "tests_blog"."id"'
[2024-11-23T00:19:49.375Z] params = ('Blog 1',)
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.375Z] if params is None:
[2024-11-23T00:19:49.375Z] return super().execute(query)
[2024-11-23T00:19:49.375Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.375Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.375Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.375Z] > return super().execute(query, params)
[2024-11-23T00:19:49.375Z] E django.db.utils.OperationalError: no such table: tests_blog
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.375Z] _ ERROR at setup of SearchFilterAnnotatedFieldTests.test_must_call_distinct_subsequent_m2m_fields _
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0e1250>
[2024-11-23T00:19:49.375Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.375Z] params = ('abc', 'def')
[2024-11-23T00:19:49.375Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0e1250>})
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.375Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.375Z] # ever set during testing).
[2024-11-23T00:19:49.375Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.375Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.375Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.375Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.375Z] if params is None:
[2024-11-23T00:19:49.375Z] # params default might be backend specific.
[2024-11-23T00:19:49.375Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.375Z] else:
[2024-11-23T00:19:49.375Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.375Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.375Z]
[2024-11-23T00:19:49.375Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5216d0>
[2024-11-23T00:19:49.375Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.376Z] params = ('abc', 'def')
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.376Z] if params is None:
[2024-11-23T00:19:49.376Z] return super().execute(query)
[2024-11-23T00:19:49.376Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.376Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.376Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.376Z] > return super().execute(query, params)
[2024-11-23T00:19:49.376Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] cls = <class 'tests.test_filters.SearchFilterAnnotatedFieldTests'>
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] @classmethod
[2024-11-23T00:19:49.376Z] def setUpTestData(cls):
[2024-11-23T00:19:49.376Z] > SearchFilterModel.objects.create(title='abc', text='def')
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] tests/test_filters.py:473:
[2024-11-23T00:19:49.376Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.376Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.376Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.376Z] self.save_base(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.376Z] updated = self._save_table(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.376Z] results = self._do_insert(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.376Z] return manager._insert(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.376Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.376Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.376Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.376Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.376Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.376Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.376Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.376Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.376Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5216d0>
[2024-11-23T00:19:49.376Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.376Z] params = ('abc', 'def')
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.376Z] if params is None:
[2024-11-23T00:19:49.376Z] return super().execute(query)
[2024-11-23T00:19:49.376Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.376Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.376Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.376Z] > return super().execute(query, params)
[2024-11-23T00:19:49.376Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.376Z] _ ERROR at setup of SearchFilterAnnotatedFieldTests.test_search_in_annotated_field _
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0e1250>
[2024-11-23T00:19:49.376Z] sql = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.376Z] params = ('abc', 'def')
[2024-11-23T00:19:49.376Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0e1250>})
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.376Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.376Z] # ever set during testing).
[2024-11-23T00:19:49.376Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.376Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.376Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.376Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.376Z] if params is None:
[2024-11-23T00:19:49.376Z] # params default might be backend specific.
[2024-11-23T00:19:49.376Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.376Z] else:
[2024-11-23T00:19:49.376Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.376Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5216d0>
[2024-11-23T00:19:49.376Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.376Z] params = ('abc', 'def')
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.376Z] if params is None:
[2024-11-23T00:19:49.376Z] return super().execute(query)
[2024-11-23T00:19:49.376Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.376Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.376Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.376Z] > return super().execute(query, params)
[2024-11-23T00:19:49.376Z] E sqlite3.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] cls = <class 'tests.test_filters.SearchFilterAnnotatedFieldTests'>
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] @classmethod
[2024-11-23T00:19:49.376Z] def setUpTestData(cls):
[2024-11-23T00:19:49.376Z] > SearchFilterModel.objects.create(title='abc', text='def')
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] tests/test_filters.py:473:
[2024-11-23T00:19:49.376Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.376Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.376Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.376Z] self.save_base(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.376Z] updated = self._save_table(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.376Z] results = self._do_insert(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.376Z] return manager._insert(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.376Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.376Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.376Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.376Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.376Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.376Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.376Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.376Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.376Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5216d0>
[2024-11-23T00:19:49.376Z] query = 'INSERT INTO "tests_searchfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_searchfiltermodel"."id"'
[2024-11-23T00:19:49.376Z] params = ('abc', 'def')
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.376Z] if params is None:
[2024-11-23T00:19:49.376Z] return super().execute(query)
[2024-11-23T00:19:49.376Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.376Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.376Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.376Z] > return super().execute(query, params)
[2024-11-23T00:19:49.376Z] E django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.376Z] =================================== FAILURES ===================================
[2024-11-23T00:19:49.376Z] _______________ BasicAuthTests.test_decoding_of_utf8_credentials _______________
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cf32c10>
[2024-11-23T00:19:49.376Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.376Z] params = ('md5$aMvwG6igMSXnbgQTxII1XQ$fc624e3e48e16bdc68bc8b3497f9567d', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.376Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cf32c10>})
[2024-11-23T00:19:49.376Z]
[2024-11-23T00:19:49.376Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.376Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.376Z] # ever set during testing).
[2024-11-23T00:19:49.376Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.376Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.376Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.376Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.376Z] if params is None:
[2024-11-23T00:19:49.376Z] # params default might be backend specific.
[2024-11-23T00:19:49.376Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.376Z] else:
[2024-11-23T00:19:49.377Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.377Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe330>
[2024-11-23T00:19:49.377Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.377Z] params = ('md5$aMvwG6igMSXnbgQTxII1XQ$fc624e3e48e16bdc68bc8b3497f9567d', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.377Z] if params is None:
[2024-11-23T00:19:49.377Z] return super().execute(query)
[2024-11-23T00:19:49.377Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.377Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.377Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.377Z] > return super().execute(query, params)
[2024-11-23T00:19:49.377Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_decoding_of_utf8_credentials>
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def setUp(self):
[2024-11-23T00:19:49.377Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.377Z] self.username = 'john'
[2024-11-23T00:19:49.377Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.377Z] self.password = 'password'
[2024-11-23T00:19:49.377Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.377Z] self.username, self.email, self.password
[2024-11-23T00:19:49.377Z] )
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.377Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.377Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.377Z] user.save(using=self._db)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.377Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.377Z] self.save_base(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.377Z] updated = self._save_table(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.377Z] results = self._do_insert(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.377Z] return manager._insert(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.377Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.377Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.377Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.377Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.377Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.377Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.377Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.377Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.377Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe330>
[2024-11-23T00:19:49.377Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.377Z] params = ('md5$aMvwG6igMSXnbgQTxII1XQ$fc624e3e48e16bdc68bc8b3497f9567d', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.377Z] if params is None:
[2024-11-23T00:19:49.377Z] return super().execute(query)
[2024-11-23T00:19:49.377Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.377Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.377Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.377Z] > return super().execute(query, params)
[2024-11-23T00:19:49.377Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.377Z] ___________ BasicAuthTests.test_fail_post_if_credentials_are_missing ___________
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cfba140>
[2024-11-23T00:19:49.377Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.377Z] params = ('md5$1hRXlIZAJTU4jfafLwIe69$f2042b1265affbd5e45b9484975c49d7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.377Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cfba140>})
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.377Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.377Z] # ever set during testing).
[2024-11-23T00:19:49.377Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.377Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.377Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.377Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.377Z] if params is None:
[2024-11-23T00:19:49.377Z] # params default might be backend specific.
[2024-11-23T00:19:49.377Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.377Z] else:
[2024-11-23T00:19:49.377Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.377Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe2a0>
[2024-11-23T00:19:49.377Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.377Z] params = ('md5$1hRXlIZAJTU4jfafLwIe69$f2042b1265affbd5e45b9484975c49d7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.377Z] if params is None:
[2024-11-23T00:19:49.377Z] return super().execute(query)
[2024-11-23T00:19:49.377Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.377Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.377Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.377Z] > return super().execute(query, params)
[2024-11-23T00:19:49.377Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_fail_post_if_credentials_are_missing>
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def setUp(self):
[2024-11-23T00:19:49.377Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.377Z] self.username = 'john'
[2024-11-23T00:19:49.377Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.377Z] self.password = 'password'
[2024-11-23T00:19:49.377Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.377Z] self.username, self.email, self.password
[2024-11-23T00:19:49.377Z] )
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.377Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.377Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.377Z] user.save(using=self._db)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.377Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.377Z] self.save_base(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.377Z] updated = self._save_table(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.377Z] results = self._do_insert(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.377Z] return manager._insert(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.377Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.377Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.377Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.377Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.377Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.377Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.377Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.377Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.377Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe2a0>
[2024-11-23T00:19:49.377Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.377Z] params = ('md5$1hRXlIZAJTU4jfafLwIe69$f2042b1265affbd5e45b9484975c49d7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.377Z] if params is None:
[2024-11-23T00:19:49.377Z] return super().execute(query)
[2024-11-23T00:19:49.377Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.377Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.377Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.377Z] > return super().execute(query, params)
[2024-11-23T00:19:49.377Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.377Z] _________ BasicAuthTests.test_fail_post_if_credentials_contain_spaces __________
[2024-11-23T00:19:49.377Z]
[2024-11-23T00:19:49.377Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ced7c50>
[2024-11-23T00:19:49.377Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.377Z] params = ('md5$k6KSrOnd8lnYTDLiheTHO4$e267f477be07b7fc17b6ce8d2d87ebe1', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.378Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ced7c50>})
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.378Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.378Z] # ever set during testing).
[2024-11-23T00:19:49.378Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.378Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.378Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.378Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.378Z] if params is None:
[2024-11-23T00:19:49.378Z] # params default might be backend specific.
[2024-11-23T00:19:49.378Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.378Z] else:
[2024-11-23T00:19:49.378Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.378Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe3c0>
[2024-11-23T00:19:49.378Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.378Z] params = ('md5$k6KSrOnd8lnYTDLiheTHO4$e267f477be07b7fc17b6ce8d2d87ebe1', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.378Z] if params is None:
[2024-11-23T00:19:49.378Z] return super().execute(query)
[2024-11-23T00:19:49.378Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.378Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.378Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.378Z] > return super().execute(query, params)
[2024-11-23T00:19:49.378Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_fail_post_if_credentials_contain_spaces>
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def setUp(self):
[2024-11-23T00:19:49.378Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.378Z] self.username = 'john'
[2024-11-23T00:19:49.378Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.378Z] self.password = 'password'
[2024-11-23T00:19:49.378Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.378Z] self.username, self.email, self.password
[2024-11-23T00:19:49.378Z] )
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.378Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.378Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.378Z] user.save(using=self._db)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.378Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.378Z] self.save_base(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.378Z] updated = self._save_table(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.378Z] results = self._do_insert(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.378Z] return manager._insert(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.378Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.378Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.378Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.378Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.378Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.378Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.378Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.378Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.378Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe3c0>
[2024-11-23T00:19:49.378Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.378Z] params = ('md5$k6KSrOnd8lnYTDLiheTHO4$e267f477be07b7fc17b6ce8d2d87ebe1', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.378Z] if params is None:
[2024-11-23T00:19:49.378Z] return super().execute(query)
[2024-11-23T00:19:49.378Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.378Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.378Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.378Z] > return super().execute(query, params)
[2024-11-23T00:19:49.378Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.378Z] _______________ BasicAuthTests.test_post_form_failing_basic_auth _______________
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ccc0870>
[2024-11-23T00:19:49.378Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.378Z] params = ('md5$ysFmt2MyXH9HIvLznxdHsA$080f756a2c8f243074da6dec2e847381', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.378Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ccc0870>})
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.378Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.378Z] # ever set during testing).
[2024-11-23T00:19:49.378Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.378Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.378Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.378Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.378Z] if params is None:
[2024-11-23T00:19:49.378Z] # params default might be backend specific.
[2024-11-23T00:19:49.378Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.378Z] else:
[2024-11-23T00:19:49.378Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.378Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5e8d0>
[2024-11-23T00:19:49.378Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.378Z] params = ('md5$ysFmt2MyXH9HIvLznxdHsA$080f756a2c8f243074da6dec2e847381', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.378Z] if params is None:
[2024-11-23T00:19:49.378Z] return super().execute(query)
[2024-11-23T00:19:49.378Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.378Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.378Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.378Z] > return super().execute(query, params)
[2024-11-23T00:19:49.378Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_form_failing_basic_auth>
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def setUp(self):
[2024-11-23T00:19:49.378Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.378Z] self.username = 'john'
[2024-11-23T00:19:49.378Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.378Z] self.password = 'password'
[2024-11-23T00:19:49.378Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.378Z] self.username, self.email, self.password
[2024-11-23T00:19:49.378Z] )
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.378Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.378Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.378Z] user.save(using=self._db)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.378Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.378Z] self.save_base(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.378Z] updated = self._save_table(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.378Z] results = self._do_insert(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.378Z] return manager._insert(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.378Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.378Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.378Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.378Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.378Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.378Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.378Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.378Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.378Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.378Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5e8d0>
[2024-11-23T00:19:49.378Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.378Z] params = ('md5$ysFmt2MyXH9HIvLznxdHsA$080f756a2c8f243074da6dec2e847381', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.378Z]
[2024-11-23T00:19:49.378Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.378Z] if params is None:
[2024-11-23T00:19:49.378Z] return super().execute(query)
[2024-11-23T00:19:49.378Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.378Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.378Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.379Z] > return super().execute(query, params)
[2024-11-23T00:19:49.379Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.379Z] _______________ BasicAuthTests.test_post_form_passing_basic_auth _______________
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cf57280>
[2024-11-23T00:19:49.379Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.379Z] params = ('md5$j30d4652HmSnhurnf9HtEk$2cae859cd0ebac572f9f59e219b73271', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.379Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cf57280>})
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.379Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.379Z] # ever set during testing).
[2024-11-23T00:19:49.379Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.379Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.379Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.379Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.379Z] if params is None:
[2024-11-23T00:19:49.379Z] # params default might be backend specific.
[2024-11-23T00:19:49.379Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.379Z] else:
[2024-11-23T00:19:49.379Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.379Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cb90>
[2024-11-23T00:19:49.379Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.379Z] params = ('md5$j30d4652HmSnhurnf9HtEk$2cae859cd0ebac572f9f59e219b73271', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.379Z] if params is None:
[2024-11-23T00:19:49.379Z] return super().execute(query)
[2024-11-23T00:19:49.379Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.379Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.379Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.379Z] > return super().execute(query, params)
[2024-11-23T00:19:49.379Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_form_passing_basic_auth>
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def setUp(self):
[2024-11-23T00:19:49.379Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.379Z] self.username = 'john'
[2024-11-23T00:19:49.379Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.379Z] self.password = 'password'
[2024-11-23T00:19:49.379Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.379Z] self.username, self.email, self.password
[2024-11-23T00:19:49.379Z] )
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.379Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.379Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.379Z] user.save(using=self._db)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.379Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.379Z] self.save_base(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.379Z] updated = self._save_table(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.379Z] results = self._do_insert(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.379Z] return manager._insert(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.379Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.379Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.379Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.379Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.379Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.379Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.379Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.379Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.379Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cb90>
[2024-11-23T00:19:49.379Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.379Z] params = ('md5$j30d4652HmSnhurnf9HtEk$2cae859cd0ebac572f9f59e219b73271', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.379Z] if params is None:
[2024-11-23T00:19:49.379Z] return super().execute(query)
[2024-11-23T00:19:49.379Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.379Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.379Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.379Z] > return super().execute(query, params)
[2024-11-23T00:19:49.379Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.379Z] _______________ BasicAuthTests.test_post_json_failing_basic_auth _______________
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521d607150>
[2024-11-23T00:19:49.379Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.379Z] params = ('md5$TqUW1eL9SZ7TGDQCChHH8w$73d7141f48087d1ae40dff90746278c4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.379Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521d607150>})
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.379Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.379Z] # ever set during testing).
[2024-11-23T00:19:49.379Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.379Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.379Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.379Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.379Z] if params is None:
[2024-11-23T00:19:49.379Z] # params default might be backend specific.
[2024-11-23T00:19:49.379Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.379Z] else:
[2024-11-23T00:19:49.379Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.379Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f770>
[2024-11-23T00:19:49.379Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.379Z] params = ('md5$TqUW1eL9SZ7TGDQCChHH8w$73d7141f48087d1ae40dff90746278c4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.379Z] if params is None:
[2024-11-23T00:19:49.379Z] return super().execute(query)
[2024-11-23T00:19:49.379Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.379Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.379Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.379Z] > return super().execute(query, params)
[2024-11-23T00:19:49.379Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_json_failing_basic_auth>
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] def setUp(self):
[2024-11-23T00:19:49.379Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.379Z] self.username = 'john'
[2024-11-23T00:19:49.379Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.379Z] self.password = 'password'
[2024-11-23T00:19:49.379Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.379Z] self.username, self.email, self.password
[2024-11-23T00:19:49.379Z] )
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.379Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.379Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.379Z] user.save(using=self._db)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.379Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.379Z] self.save_base(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.379Z] updated = self._save_table(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.379Z] results = self._do_insert(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.379Z] return manager._insert(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.379Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.379Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.379Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.379Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.379Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.379Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.379Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.379Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.379Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.379Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.379Z]
[2024-11-23T00:19:49.379Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f770>
[2024-11-23T00:19:49.380Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.380Z] params = ('md5$TqUW1eL9SZ7TGDQCChHH8w$73d7141f48087d1ae40dff90746278c4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.380Z] if params is None:
[2024-11-23T00:19:49.380Z] return super().execute(query)
[2024-11-23T00:19:49.380Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.380Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.380Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.380Z] > return super().execute(query, params)
[2024-11-23T00:19:49.380Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.380Z] _______________ BasicAuthTests.test_post_json_passing_basic_auth _______________
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ce85790>
[2024-11-23T00:19:49.380Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.380Z] params = ('md5$gVDKtS7GSNyv7NUVoc8uCM$88a56a619cabb853e60be625f4ee8de7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.380Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ce85790>})
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.380Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.380Z] # ever set during testing).
[2024-11-23T00:19:49.380Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.380Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.380Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.380Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.380Z] if params is None:
[2024-11-23T00:19:49.380Z] # params default might be backend specific.
[2024-11-23T00:19:49.380Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.380Z] else:
[2024-11-23T00:19:49.380Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.380Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d0a0>
[2024-11-23T00:19:49.380Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.380Z] params = ('md5$gVDKtS7GSNyv7NUVoc8uCM$88a56a619cabb853e60be625f4ee8de7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.380Z] if params is None:
[2024-11-23T00:19:49.380Z] return super().execute(query)
[2024-11-23T00:19:49.380Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.380Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.380Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.380Z] > return super().execute(query, params)
[2024-11-23T00:19:49.380Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_json_passing_basic_auth>
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def setUp(self):
[2024-11-23T00:19:49.380Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.380Z] self.username = 'john'
[2024-11-23T00:19:49.380Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.380Z] self.password = 'password'
[2024-11-23T00:19:49.380Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.380Z] self.username, self.email, self.password
[2024-11-23T00:19:49.380Z] )
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.380Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.380Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.380Z] user.save(using=self._db)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.380Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.380Z] self.save_base(
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.380Z] updated = self._save_table(
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.380Z] results = self._do_insert(
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.380Z] return manager._insert(
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.380Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.380Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.380Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.380Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.380Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.380Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.380Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.380Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.380Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d0a0>
[2024-11-23T00:19:49.380Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.380Z] params = ('md5$gVDKtS7GSNyv7NUVoc8uCM$88a56a619cabb853e60be625f4ee8de7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.380Z] if params is None:
[2024-11-23T00:19:49.380Z] return super().execute(query)
[2024-11-23T00:19:49.380Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.380Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.380Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.380Z] > return super().execute(query, params)
[2024-11-23T00:19:49.380Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.380Z] ______ BasicAuthTests.test_post_json_without_password_failing_basic_auth _______
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ce86f30>
[2024-11-23T00:19:49.380Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.380Z] params = ('md5$myXtuyl6JlVaeWKZ61UDmo$1dc4042039112ad4307628011abf4ecf', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.380Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ce86f30>})
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.380Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.380Z] # ever set during testing).
[2024-11-23T00:19:49.380Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.380Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.380Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.380Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.380Z] if params is None:
[2024-11-23T00:19:49.380Z] # params default might be backend specific.
[2024-11-23T00:19:49.380Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.380Z] else:
[2024-11-23T00:19:49.380Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.380Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cc20>
[2024-11-23T00:19:49.380Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.380Z] params = ('md5$myXtuyl6JlVaeWKZ61UDmo$1dc4042039112ad4307628011abf4ecf', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.380Z] if params is None:
[2024-11-23T00:19:49.380Z] return super().execute(query)
[2024-11-23T00:19:49.380Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.380Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.380Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.380Z] > return super().execute(query, params)
[2024-11-23T00:19:49.380Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_post_json_without_password_failing_basic_auth>
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] def setUp(self):
[2024-11-23T00:19:49.380Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.380Z] self.username = 'john'
[2024-11-23T00:19:49.380Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.380Z] self.password = 'password'
[2024-11-23T00:19:49.380Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.380Z] self.username, self.email, self.password
[2024-11-23T00:19:49.380Z] )
[2024-11-23T00:19:49.380Z]
[2024-11-23T00:19:49.380Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.380Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.380Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.380Z] user.save(using=self._db)
[2024-11-23T00:19:49.380Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.380Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.381Z] self.save_base(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.381Z] updated = self._save_table(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.381Z] results = self._do_insert(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.381Z] return manager._insert(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.381Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.381Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.381Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.381Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.381Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.381Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.381Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.381Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.381Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cc20>
[2024-11-23T00:19:49.381Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.381Z] params = ('md5$myXtuyl6JlVaeWKZ61UDmo$1dc4042039112ad4307628011abf4ecf', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.381Z] if params is None:
[2024-11-23T00:19:49.381Z] return super().execute(query)
[2024-11-23T00:19:49.381Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.381Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.381Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.381Z] > return super().execute(query, params)
[2024-11-23T00:19:49.381Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.381Z] ______ BasicAuthTests.test_regression_handle_bad_base64_basic_auth_header ______
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ccb6930>
[2024-11-23T00:19:49.381Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.381Z] params = ('md5$BVc5TEs0vi0pQuD6aiZn6D$f81d0ba180d65f02044e335b46927ff0', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.381Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ccb6930>})
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.381Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.381Z] # ever set during testing).
[2024-11-23T00:19:49.381Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.381Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.381Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.381Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.381Z] if params is None:
[2024-11-23T00:19:49.381Z] # params default might be backend specific.
[2024-11-23T00:19:49.381Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.381Z] else:
[2024-11-23T00:19:49.381Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.381Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.381Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.381Z] params = ('md5$BVc5TEs0vi0pQuD6aiZn6D$f81d0ba180d65f02044e335b46927ff0', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.381Z] if params is None:
[2024-11-23T00:19:49.381Z] return super().execute(query)
[2024-11-23T00:19:49.381Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.381Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.381Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.381Z] > return super().execute(query, params)
[2024-11-23T00:19:49.381Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <tests.authentication.test_authentication.BasicAuthTests testMethod=test_regression_handle_bad_base64_basic_auth_header>
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def setUp(self):
[2024-11-23T00:19:49.381Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.381Z] self.username = 'john'
[2024-11-23T00:19:49.381Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.381Z] self.password = 'password'
[2024-11-23T00:19:49.381Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.381Z] self.username, self.email, self.password
[2024-11-23T00:19:49.381Z] )
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] tests/authentication/test_authentication.py:89:
[2024-11-23T00:19:49.381Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.381Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.381Z] user.save(using=self._db)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.381Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.381Z] self.save_base(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.381Z] updated = self._save_table(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.381Z] results = self._do_insert(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.381Z] return manager._insert(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.381Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.381Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.381Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.381Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.381Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.381Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.381Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.381Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.381Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.381Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.381Z] params = ('md5$BVc5TEs0vi0pQuD6aiZn6D$f81d0ba180d65f02044e335b46927ff0', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.381Z] if params is None:
[2024-11-23T00:19:49.381Z] return super().execute(query)
[2024-11-23T00:19:49.381Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.381Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.381Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.381Z] > return super().execute(query, params)
[2024-11-23T00:19:49.381Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.381Z] _______________ SessionAuthTests.test_login_view_renders_on_get ________________
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ccb5430>
[2024-11-23T00:19:49.381Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.381Z] params = ('md5$IiHz2rdjyTTrlf84HvSkHR$6e5e6306e34dd587302074b52a574b8f', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.381Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ccb5430>})
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.381Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.381Z] # ever set during testing).
[2024-11-23T00:19:49.381Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.381Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.381Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.381Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.381Z] if params is None:
[2024-11-23T00:19:49.381Z] # params default might be backend specific.
[2024-11-23T00:19:49.381Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.381Z] else:
[2024-11-23T00:19:49.381Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.381Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521cee7bf0>
[2024-11-23T00:19:49.381Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.381Z] params = ('md5$IiHz2rdjyTTrlf84HvSkHR$6e5e6306e34dd587302074b52a574b8f', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.381Z] if params is None:
[2024-11-23T00:19:49.381Z] return super().execute(query)
[2024-11-23T00:19:49.381Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.381Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.381Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.381Z] > return super().execute(query, params)
[2024-11-23T00:19:49.381Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_login_view_renders_on_get>
[2024-11-23T00:19:49.381Z]
[2024-11-23T00:19:49.381Z] def setUp(self):
[2024-11-23T00:19:49.381Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.381Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T00:19:49.382Z] self.username = 'john'
[2024-11-23T00:19:49.382Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.382Z] self.password = 'password'
[2024-11-23T00:19:49.382Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.382Z] self.username, self.email, self.password
[2024-11-23T00:19:49.382Z] )
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] tests/authentication/test_authentication.py:207:
[2024-11-23T00:19:49.382Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.382Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.382Z] user.save(using=self._db)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.382Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.382Z] self.save_base(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.382Z] updated = self._save_table(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.382Z] results = self._do_insert(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.382Z] return manager._insert(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.382Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.382Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.382Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.382Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.382Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.382Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.382Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.382Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.382Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521cee7bf0>
[2024-11-23T00:19:49.382Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.382Z] params = ('md5$IiHz2rdjyTTrlf84HvSkHR$6e5e6306e34dd587302074b52a574b8f', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.382Z] if params is None:
[2024-11-23T00:19:49.382Z] return super().execute(query)
[2024-11-23T00:19:49.382Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.382Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.382Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.382Z] > return super().execute(query, params)
[2024-11-23T00:19:49.382Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.382Z] _____________ SessionAuthTests.test_post_form_session_auth_failing _____________
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ccb5790>
[2024-11-23T00:19:49.382Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.382Z] params = ('md5$rQwLFg1mIpmV8K4Q3X4qQk$9320a2653f33b6521d35b6aeb5aff6e2', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.382Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ccb5790>})
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.382Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.382Z] # ever set during testing).
[2024-11-23T00:19:49.382Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.382Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.382Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.382Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.382Z] if params is None:
[2024-11-23T00:19:49.382Z] # params default might be backend specific.
[2024-11-23T00:19:49.382Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.382Z] else:
[2024-11-23T00:19:49.382Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.382Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0ff6e0>
[2024-11-23T00:19:49.382Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.382Z] params = ('md5$rQwLFg1mIpmV8K4Q3X4qQk$9320a2653f33b6521d35b6aeb5aff6e2', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.382Z] if params is None:
[2024-11-23T00:19:49.382Z] return super().execute(query)
[2024-11-23T00:19:49.382Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.382Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.382Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.382Z] > return super().execute(query, params)
[2024-11-23T00:19:49.382Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_failing>
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def setUp(self):
[2024-11-23T00:19:49.382Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.382Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T00:19:49.382Z] self.username = 'john'
[2024-11-23T00:19:49.382Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.382Z] self.password = 'password'
[2024-11-23T00:19:49.382Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.382Z] self.username, self.email, self.password
[2024-11-23T00:19:49.382Z] )
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] tests/authentication/test_authentication.py:207:
[2024-11-23T00:19:49.382Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.382Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.382Z] user.save(using=self._db)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.382Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.382Z] self.save_base(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.382Z] updated = self._save_table(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.382Z] results = self._do_insert(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.382Z] return manager._insert(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.382Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.382Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.382Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.382Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.382Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.382Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.382Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.382Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.382Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0ff6e0>
[2024-11-23T00:19:49.382Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.382Z] params = ('md5$rQwLFg1mIpmV8K4Q3X4qQk$9320a2653f33b6521d35b6aeb5aff6e2', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.382Z] if params is None:
[2024-11-23T00:19:49.382Z] return super().execute(query)
[2024-11-23T00:19:49.382Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.382Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.382Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.382Z] > return super().execute(query, params)
[2024-11-23T00:19:49.382Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.382Z] __________ SessionAuthTests.test_post_form_session_auth_failing_csrf ___________
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd1d130>
[2024-11-23T00:19:49.382Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.382Z] params = ('md5$18GjBPjrjWWAhA35CksFvZ$fa702df031ff433d89ad5d5a305fe34a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.382Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd1d130>})
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.382Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.382Z] # ever set during testing).
[2024-11-23T00:19:49.382Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.382Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.382Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.382Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.382Z] if params is None:
[2024-11-23T00:19:49.382Z] # params default might be backend specific.
[2024-11-23T00:19:49.382Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.382Z] else:
[2024-11-23T00:19:49.382Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.382Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a2210>
[2024-11-23T00:19:49.382Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.382Z] params = ('md5$18GjBPjrjWWAhA35CksFvZ$fa702df031ff433d89ad5d5a305fe34a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.382Z]
[2024-11-23T00:19:49.382Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.382Z] if params is None:
[2024-11-23T00:19:49.382Z] return super().execute(query)
[2024-11-23T00:19:49.383Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.383Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.383Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.383Z] > return super().execute(query, params)
[2024-11-23T00:19:49.383Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_failing_csrf>
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def setUp(self):
[2024-11-23T00:19:49.383Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.383Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T00:19:49.383Z] self.username = 'john'
[2024-11-23T00:19:49.383Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.383Z] self.password = 'password'
[2024-11-23T00:19:49.383Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.383Z] self.username, self.email, self.password
[2024-11-23T00:19:49.383Z] )
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] tests/authentication/test_authentication.py:207:
[2024-11-23T00:19:49.383Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.383Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.383Z] user.save(using=self._db)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.383Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.383Z] self.save_base(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.383Z] updated = self._save_table(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.383Z] results = self._do_insert(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.383Z] return manager._insert(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.383Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.383Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.383Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.383Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.383Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.383Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.383Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.383Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.383Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a2210>
[2024-11-23T00:19:49.383Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.383Z] params = ('md5$18GjBPjrjWWAhA35CksFvZ$fa702df031ff433d89ad5d5a305fe34a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.383Z] if params is None:
[2024-11-23T00:19:49.383Z] return super().execute(query)
[2024-11-23T00:19:49.383Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.383Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.383Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.383Z] > return super().execute(query, params)
[2024-11-23T00:19:49.383Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.383Z] _____________ SessionAuthTests.test_post_form_session_auth_passing _____________
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd1cb30>
[2024-11-23T00:19:49.383Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.383Z] params = ('md5$2iz8OJ5z5DzeQCHThLLW4x$f5897742bf75e8b66fe577a5c264a311', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.383Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd1cb30>})
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.383Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.383Z] # ever set during testing).
[2024-11-23T00:19:49.383Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.383Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.383Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.383Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.383Z] if params is None:
[2024-11-23T00:19:49.383Z] # params default might be backend specific.
[2024-11-23T00:19:49.383Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.383Z] else:
[2024-11-23T00:19:49.383Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.383Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe2a0>
[2024-11-23T00:19:49.383Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.383Z] params = ('md5$2iz8OJ5z5DzeQCHThLLW4x$f5897742bf75e8b66fe577a5c264a311', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.383Z] if params is None:
[2024-11-23T00:19:49.383Z] return super().execute(query)
[2024-11-23T00:19:49.383Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.383Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.383Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.383Z] > return super().execute(query, params)
[2024-11-23T00:19:49.383Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_passing>
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def setUp(self):
[2024-11-23T00:19:49.383Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.383Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T00:19:49.383Z] self.username = 'john'
[2024-11-23T00:19:49.383Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.383Z] self.password = 'password'
[2024-11-23T00:19:49.383Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.383Z] self.username, self.email, self.password
[2024-11-23T00:19:49.383Z] )
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] tests/authentication/test_authentication.py:207:
[2024-11-23T00:19:49.383Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.383Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.383Z] user.save(using=self._db)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.383Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.383Z] self.save_base(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.383Z] updated = self._save_table(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.383Z] results = self._do_insert(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.383Z] return manager._insert(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.383Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.383Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.383Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.383Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.383Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.383Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.383Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.383Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.383Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe2a0>
[2024-11-23T00:19:49.383Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.383Z] params = ('md5$2iz8OJ5z5DzeQCHThLLW4x$f5897742bf75e8b66fe577a5c264a311', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.383Z] if params is None:
[2024-11-23T00:19:49.383Z] return super().execute(query)
[2024-11-23T00:19:49.383Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.383Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.383Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.383Z] > return super().execute(query, params)
[2024-11-23T00:19:49.383Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.383Z] __________ SessionAuthTests.test_post_form_session_auth_passing_csrf ___________
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd1d910>
[2024-11-23T00:19:49.383Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.383Z] params = ('md5$gN9rCJfaiRPHgXZDBlRjnw$352665ba9c3f7842e8563564e9166b5e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.383Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd1d910>})
[2024-11-23T00:19:49.383Z]
[2024-11-23T00:19:49.383Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.383Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.383Z] # ever set during testing).
[2024-11-23T00:19:49.383Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.383Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.383Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.383Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.383Z] if params is None:
[2024-11-23T00:19:49.383Z] # params default might be backend specific.
[2024-11-23T00:19:49.383Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.383Z] else:
[2024-11-23T00:19:49.384Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.384Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521cee7380>
[2024-11-23T00:19:49.384Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.384Z] params = ('md5$gN9rCJfaiRPHgXZDBlRjnw$352665ba9c3f7842e8563564e9166b5e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.384Z] if params is None:
[2024-11-23T00:19:49.384Z] return super().execute(query)
[2024-11-23T00:19:49.384Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.384Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.384Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.384Z] > return super().execute(query, params)
[2024-11-23T00:19:49.384Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_post_form_session_auth_passing_csrf>
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] def setUp(self):
[2024-11-23T00:19:49.384Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.384Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T00:19:49.384Z] self.username = 'john'
[2024-11-23T00:19:49.384Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.384Z] self.password = 'password'
[2024-11-23T00:19:49.384Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.384Z] self.username, self.email, self.password
[2024-11-23T00:19:49.384Z] )
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] tests/authentication/test_authentication.py:207:
[2024-11-23T00:19:49.384Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.384Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.384Z] user.save(using=self._db)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.384Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.384Z] self.save_base(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.384Z] updated = self._save_table(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.384Z] results = self._do_insert(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.384Z] return manager._insert(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.384Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.384Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.384Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.384Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.384Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.384Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.384Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.384Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.384Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521cee7380>
[2024-11-23T00:19:49.384Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.384Z] params = ('md5$gN9rCJfaiRPHgXZDBlRjnw$352665ba9c3f7842e8563564e9166b5e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.384Z] if params is None:
[2024-11-23T00:19:49.384Z] return super().execute(query)
[2024-11-23T00:19:49.384Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.384Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.384Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.384Z] > return super().execute(query, params)
[2024-11-23T00:19:49.384Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.384Z] _____________ SessionAuthTests.test_put_form_session_auth_passing ______________
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd1ed50>
[2024-11-23T00:19:49.384Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.384Z] params = ('md5$csqdMu6vWgRV3M2blyyA6r$6f10d5e4bf53d9b3ae0ff1676a696af4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.384Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd1ed50>})
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.384Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.384Z] # ever set during testing).
[2024-11-23T00:19:49.384Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.384Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.384Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.384Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.384Z] if params is None:
[2024-11-23T00:19:49.384Z] # params default might be backend specific.
[2024-11-23T00:19:49.384Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.384Z] else:
[2024-11-23T00:19:49.384Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.384Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a2210>
[2024-11-23T00:19:49.384Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.384Z] params = ('md5$csqdMu6vWgRV3M2blyyA6r$6f10d5e4bf53d9b3ae0ff1676a696af4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.384Z] if params is None:
[2024-11-23T00:19:49.384Z] return super().execute(query)
[2024-11-23T00:19:49.384Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.384Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.384Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.384Z] > return super().execute(query, params)
[2024-11-23T00:19:49.384Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <tests.authentication.test_authentication.SessionAuthTests testMethod=test_put_form_session_auth_passing>
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] def setUp(self):
[2024-11-23T00:19:49.384Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.384Z] self.non_csrf_client = APIClient(enforce_csrf_checks=False)
[2024-11-23T00:19:49.384Z] self.username = 'john'
[2024-11-23T00:19:49.384Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.384Z] self.password = 'password'
[2024-11-23T00:19:49.384Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.384Z] self.username, self.email, self.password
[2024-11-23T00:19:49.384Z] )
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] tests/authentication/test_authentication.py:207:
[2024-11-23T00:19:49.384Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.384Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.384Z] user.save(using=self._db)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.384Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.384Z] self.save_base(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.384Z] updated = self._save_table(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.384Z] results = self._do_insert(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.384Z] return manager._insert(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.384Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.384Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.384Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.384Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.384Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.384Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.384Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.384Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.384Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.384Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.384Z]
[2024-11-23T00:19:49.384Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a2210>
[2024-11-23T00:19:49.384Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.385Z] params = ('md5$csqdMu6vWgRV3M2blyyA6r$6f10d5e4bf53d9b3ae0ff1676a696af4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.385Z] if params is None:
[2024-11-23T00:19:49.385Z] return super().execute(query)
[2024-11-23T00:19:49.385Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.385Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.385Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.385Z] > return super().execute(query, params)
[2024-11-23T00:19:49.385Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.385Z] ________ TokenAuthTests.test_fail_authentication_if_user_is_not_active _________
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ccb5490>
[2024-11-23T00:19:49.385Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.385Z] params = ('md5$GASa0DDSquQL8Zv6IiR5hd$2e903bb7b033b7ae25566ae547bd33d3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.385Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ccb5490>})
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.385Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.385Z] # ever set during testing).
[2024-11-23T00:19:49.385Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.385Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.385Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.385Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.385Z] if params is None:
[2024-11-23T00:19:49.385Z] # params default might be backend specific.
[2024-11-23T00:19:49.385Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.385Z] else:
[2024-11-23T00:19:49.385Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.385Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5ccb0>
[2024-11-23T00:19:49.385Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.385Z] params = ('md5$GASa0DDSquQL8Zv6IiR5hd$2e903bb7b033b7ae25566ae547bd33d3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.385Z] if params is None:
[2024-11-23T00:19:49.385Z] return super().execute(query)
[2024-11-23T00:19:49.385Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.385Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.385Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.385Z] > return super().execute(query, params)
[2024-11-23T00:19:49.385Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_authentication_if_user_is_not_active>
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def setUp(self):
[2024-11-23T00:19:49.385Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.385Z] self.username = 'john'
[2024-11-23T00:19:49.385Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.385Z] self.password = 'password'
[2024-11-23T00:19:49.385Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.385Z] self.username, self.email, self.password
[2024-11-23T00:19:49.385Z] )
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.385Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.385Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.385Z] user.save(using=self._db)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.385Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.385Z] self.save_base(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.385Z] updated = self._save_table(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.385Z] results = self._do_insert(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.385Z] return manager._insert(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.385Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.385Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.385Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.385Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.385Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.385Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.385Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.385Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.385Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5ccb0>
[2024-11-23T00:19:49.385Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.385Z] params = ('md5$GASa0DDSquQL8Zv6IiR5hd$2e903bb7b033b7ae25566ae547bd33d3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.385Z] if params is None:
[2024-11-23T00:19:49.385Z] return super().execute(query)
[2024-11-23T00:19:49.385Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.385Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.385Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.385Z] > return super().execute(query, params)
[2024-11-23T00:19:49.385Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.385Z] ________ TokenAuthTests.test_fail_post_form_passing_invalid_token_auth _________
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cccd3d0>
[2024-11-23T00:19:49.385Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.385Z] params = ('md5$MDuKPc5c7dsUqIjrxCgbQX$f34fc678f05de8cbfea84f24bc77c282', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.385Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cccd3d0>})
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.385Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.385Z] # ever set during testing).
[2024-11-23T00:19:49.385Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.385Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.385Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.385Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.385Z] if params is None:
[2024-11-23T00:19:49.385Z] # params default might be backend specific.
[2024-11-23T00:19:49.385Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.385Z] else:
[2024-11-23T00:19:49.385Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.385Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cf80>
[2024-11-23T00:19:49.385Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.385Z] params = ('md5$MDuKPc5c7dsUqIjrxCgbQX$f34fc678f05de8cbfea84f24bc77c282', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.385Z] if params is None:
[2024-11-23T00:19:49.385Z] return super().execute(query)
[2024-11-23T00:19:49.385Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.385Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.385Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.385Z] > return super().execute(query, params)
[2024-11-23T00:19:49.385Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_form_passing_invalid_token_auth>
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] def setUp(self):
[2024-11-23T00:19:49.385Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.385Z] self.username = 'john'
[2024-11-23T00:19:49.385Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.385Z] self.password = 'password'
[2024-11-23T00:19:49.385Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.385Z] self.username, self.email, self.password
[2024-11-23T00:19:49.385Z] )
[2024-11-23T00:19:49.385Z]
[2024-11-23T00:19:49.385Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.385Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.385Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.385Z] user.save(using=self._db)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.385Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.385Z] self.save_base(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.385Z] updated = self._save_table(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.385Z] results = self._do_insert(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.385Z] return manager._insert(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.385Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.385Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.385Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.385Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.385Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.385Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.386Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.386Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.386Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.386Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cf80>
[2024-11-23T00:19:49.386Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.386Z] params = ('md5$MDuKPc5c7dsUqIjrxCgbQX$f34fc678f05de8cbfea84f24bc77c282', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.386Z] if params is None:
[2024-11-23T00:19:49.386Z] return super().execute(query)
[2024-11-23T00:19:49.386Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.386Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.386Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.386Z] > return super().execute(query, params)
[2024-11-23T00:19:49.386Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.386Z] ______ TokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth _______
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ccce090>
[2024-11-23T00:19:49.386Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.386Z] params = ('md5$iDVmEQ9ieMImZSWWJDYxHZ$59ce64c7659768cd1246fde0cb21bdfd', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.386Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ccce090>})
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.386Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.386Z] # ever set during testing).
[2024-11-23T00:19:49.386Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.386Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.386Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.386Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.386Z] if params is None:
[2024-11-23T00:19:49.386Z] # params default might be backend specific.
[2024-11-23T00:19:49.386Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.386Z] else:
[2024-11-23T00:19:49.386Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.386Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d2e0>
[2024-11-23T00:19:49.386Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.386Z] params = ('md5$iDVmEQ9ieMImZSWWJDYxHZ$59ce64c7659768cd1246fde0cb21bdfd', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.386Z] if params is None:
[2024-11-23T00:19:49.386Z] return super().execute(query)
[2024-11-23T00:19:49.386Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.386Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.386Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.386Z] > return super().execute(query, params)
[2024-11-23T00:19:49.386Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_form_passing_nonexistent_token_auth>
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def setUp(self):
[2024-11-23T00:19:49.386Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.386Z] self.username = 'john'
[2024-11-23T00:19:49.386Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.386Z] self.password = 'password'
[2024-11-23T00:19:49.386Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.386Z] self.username, self.email, self.password
[2024-11-23T00:19:49.386Z] )
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.386Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.386Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.386Z] user.save(using=self._db)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.386Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.386Z] self.save_base(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.386Z] updated = self._save_table(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.386Z] results = self._do_insert(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.386Z] return manager._insert(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.386Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.386Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.386Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.386Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.386Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.386Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.386Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.386Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.386Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d2e0>
[2024-11-23T00:19:49.386Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.386Z] params = ('md5$iDVmEQ9ieMImZSWWJDYxHZ$59ce64c7659768cd1246fde0cb21bdfd', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.386Z] if params is None:
[2024-11-23T00:19:49.386Z] return super().execute(query)
[2024-11-23T00:19:49.386Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.386Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.386Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.386Z] > return super().execute(query, params)
[2024-11-23T00:19:49.386Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.386Z] ____________ TokenAuthTests.test_fail_post_if_token_contains_spaces ____________
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd35370>
[2024-11-23T00:19:49.386Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.386Z] params = ('md5$on2OOxikIjEljwwS6Ov7jY$4d82819eb57551cd0c497bbb6b5df2f4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.386Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd35370>})
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.386Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.386Z] # ever set during testing).
[2024-11-23T00:19:49.386Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.386Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.386Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.386Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.386Z] if params is None:
[2024-11-23T00:19:49.386Z] # params default might be backend specific.
[2024-11-23T00:19:49.386Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.386Z] else:
[2024-11-23T00:19:49.386Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.386Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d0a0>
[2024-11-23T00:19:49.386Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.386Z] params = ('md5$on2OOxikIjEljwwS6Ov7jY$4d82819eb57551cd0c497bbb6b5df2f4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.386Z] if params is None:
[2024-11-23T00:19:49.386Z] return super().execute(query)
[2024-11-23T00:19:49.386Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.386Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.386Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.386Z] > return super().execute(query, params)
[2024-11-23T00:19:49.386Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_if_token_contains_spaces>
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] def setUp(self):
[2024-11-23T00:19:49.386Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.386Z] self.username = 'john'
[2024-11-23T00:19:49.386Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.386Z] self.password = 'password'
[2024-11-23T00:19:49.386Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.386Z] self.username, self.email, self.password
[2024-11-23T00:19:49.386Z] )
[2024-11-23T00:19:49.386Z]
[2024-11-23T00:19:49.386Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.386Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.386Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.386Z] user.save(using=self._db)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.386Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.386Z] self.save_base(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.386Z] updated = self._save_table(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.386Z] results = self._do_insert(
[2024-11-23T00:19:49.386Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.386Z] return manager._insert(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.387Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.387Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.387Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.387Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.387Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.387Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.387Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.387Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.387Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d0a0>
[2024-11-23T00:19:49.387Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.387Z] params = ('md5$on2OOxikIjEljwwS6Ov7jY$4d82819eb57551cd0c497bbb6b5df2f4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.387Z] if params is None:
[2024-11-23T00:19:49.387Z] return super().execute(query)
[2024-11-23T00:19:49.387Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.387Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.387Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.387Z] > return super().execute(query, params)
[2024-11-23T00:19:49.387Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.387Z] ______________ TokenAuthTests.test_fail_post_if_token_is_missing _______________
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd35250>
[2024-11-23T00:19:49.387Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.387Z] params = ('md5$ONjT3mHf75H6PGBsHXEumh$a9f5ddac0239fed3607180dc02e26669', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.387Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd35250>})
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.387Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.387Z] # ever set during testing).
[2024-11-23T00:19:49.387Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.387Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.387Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.387Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.387Z] if params is None:
[2024-11-23T00:19:49.387Z] # params default might be backend specific.
[2024-11-23T00:19:49.387Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.387Z] else:
[2024-11-23T00:19:49.387Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.387Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cd40>
[2024-11-23T00:19:49.387Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.387Z] params = ('md5$ONjT3mHf75H6PGBsHXEumh$a9f5ddac0239fed3607180dc02e26669', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.387Z] if params is None:
[2024-11-23T00:19:49.387Z] return super().execute(query)
[2024-11-23T00:19:49.387Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.387Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.387Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.387Z] > return super().execute(query, params)
[2024-11-23T00:19:49.387Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_fail_post_if_token_is_missing>
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def setUp(self):
[2024-11-23T00:19:49.387Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.387Z] self.username = 'john'
[2024-11-23T00:19:49.387Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.387Z] self.password = 'password'
[2024-11-23T00:19:49.387Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.387Z] self.username, self.email, self.password
[2024-11-23T00:19:49.387Z] )
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.387Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.387Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.387Z] user.save(using=self._db)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.387Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.387Z] self.save_base(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.387Z] updated = self._save_table(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.387Z] results = self._do_insert(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.387Z] return manager._insert(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.387Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.387Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.387Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.387Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.387Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.387Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.387Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.387Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.387Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cd40>
[2024-11-23T00:19:49.387Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.387Z] params = ('md5$ONjT3mHf75H6PGBsHXEumh$a9f5ddac0239fed3607180dc02e26669', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.387Z] if params is None:
[2024-11-23T00:19:49.387Z] return super().execute(query)
[2024-11-23T00:19:49.387Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.387Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.387Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.387Z] > return super().execute(query, params)
[2024-11-23T00:19:49.387Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.387Z] __________ TokenAuthTests.test_generate_key_accessible_as_classmethod __________
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd366f0>
[2024-11-23T00:19:49.387Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.387Z] params = ('md5$ZYKMcqnILoA6RmLu5yOwbN$02bd852ef13962ff024fd4fd0b124207', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.387Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd366f0>})
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.387Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.387Z] # ever set during testing).
[2024-11-23T00:19:49.387Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.387Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.387Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.387Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.387Z] if params is None:
[2024-11-23T00:19:49.387Z] # params default might be backend specific.
[2024-11-23T00:19:49.387Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.387Z] else:
[2024-11-23T00:19:49.387Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.387Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cdd0>
[2024-11-23T00:19:49.387Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.387Z] params = ('md5$ZYKMcqnILoA6RmLu5yOwbN$02bd852ef13962ff024fd4fd0b124207', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.387Z] if params is None:
[2024-11-23T00:19:49.387Z] return super().execute(query)
[2024-11-23T00:19:49.387Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.387Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.387Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.387Z] > return super().execute(query, params)
[2024-11-23T00:19:49.387Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_generate_key_accessible_as_classmethod>
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] def setUp(self):
[2024-11-23T00:19:49.387Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.387Z] self.username = 'john'
[2024-11-23T00:19:49.387Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.387Z] self.password = 'password'
[2024-11-23T00:19:49.387Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.387Z] self.username, self.email, self.password
[2024-11-23T00:19:49.387Z] )
[2024-11-23T00:19:49.387Z]
[2024-11-23T00:19:49.387Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.387Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.387Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.388Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.388Z] user.save(using=self._db)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.388Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.388Z] self.save_base(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.388Z] updated = self._save_table(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.388Z] results = self._do_insert(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.388Z] return manager._insert(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.388Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.388Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.388Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.388Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.388Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.388Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.388Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.388Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.388Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5cdd0>
[2024-11-23T00:19:49.388Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.388Z] params = ('md5$ZYKMcqnILoA6RmLu5yOwbN$02bd852ef13962ff024fd4fd0b124207', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.388Z] if params is None:
[2024-11-23T00:19:49.388Z] return super().execute(query)
[2024-11-23T00:19:49.388Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.388Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.388Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.388Z] > return super().execute(query, params)
[2024-11-23T00:19:49.388Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.388Z] _______________ TokenAuthTests.test_generate_key_returns_string ________________
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cccfbf0>
[2024-11-23T00:19:49.388Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.388Z] params = ('md5$oAjbaAZQYQlVmZjRt1JKHI$c19f6e6a41e6b3de348e6fa1a8fb2233', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.388Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cccfbf0>})
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.388Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.388Z] # ever set during testing).
[2024-11-23T00:19:49.388Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.388Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.388Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.388Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.388Z] if params is None:
[2024-11-23T00:19:49.388Z] # params default might be backend specific.
[2024-11-23T00:19:49.388Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.388Z] else:
[2024-11-23T00:19:49.388Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.388Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.388Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.388Z] params = ('md5$oAjbaAZQYQlVmZjRt1JKHI$c19f6e6a41e6b3de348e6fa1a8fb2233', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.388Z] if params is None:
[2024-11-23T00:19:49.388Z] return super().execute(query)
[2024-11-23T00:19:49.388Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.388Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.388Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.388Z] > return super().execute(query, params)
[2024-11-23T00:19:49.388Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_generate_key_returns_string>
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] def setUp(self):
[2024-11-23T00:19:49.388Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.388Z] self.username = 'john'
[2024-11-23T00:19:49.388Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.388Z] self.password = 'password'
[2024-11-23T00:19:49.388Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.388Z] self.username, self.email, self.password
[2024-11-23T00:19:49.388Z] )
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.388Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.388Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.388Z] user.save(using=self._db)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.388Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.388Z] self.save_base(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.388Z] updated = self._save_table(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.388Z] results = self._do_insert(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.388Z] return manager._insert(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.388Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.388Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.388Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.388Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.388Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.388Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.388Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.388Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.388Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.388Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.388Z] params = ('md5$oAjbaAZQYQlVmZjRt1JKHI$c19f6e6a41e6b3de348e6fa1a8fb2233', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.388Z] if params is None:
[2024-11-23T00:19:49.388Z] return super().execute(query)
[2024-11-23T00:19:49.388Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.388Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.388Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.388Z] > return super().execute(query, params)
[2024-11-23T00:19:49.388Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.388Z] _______________ TokenAuthTests.test_post_form_failing_token_auth _______________
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cccef90>
[2024-11-23T00:19:49.388Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.388Z] params = ('md5$67lGkSdgeoh60IP0G6CXZW$20b341b816a16f90d557effe36a9ef27', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.388Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cccef90>})
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.388Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.388Z] # ever set during testing).
[2024-11-23T00:19:49.388Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.388Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.388Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.388Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.388Z] if params is None:
[2024-11-23T00:19:49.388Z] # params default might be backend specific.
[2024-11-23T00:19:49.388Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.388Z] else:
[2024-11-23T00:19:49.388Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.388Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.388Z]
[2024-11-23T00:19:49.388Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5ce60>
[2024-11-23T00:19:49.389Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.389Z] params = ('md5$67lGkSdgeoh60IP0G6CXZW$20b341b816a16f90d557effe36a9ef27', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.389Z] if params is None:
[2024-11-23T00:19:49.389Z] return super().execute(query)
[2024-11-23T00:19:49.389Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.389Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.389Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.389Z] > return super().execute(query, params)
[2024-11-23T00:19:49.389Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_form_failing_token_auth>
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def setUp(self):
[2024-11-23T00:19:49.389Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.389Z] self.username = 'john'
[2024-11-23T00:19:49.389Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.389Z] self.password = 'password'
[2024-11-23T00:19:49.389Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.389Z] self.username, self.email, self.password
[2024-11-23T00:19:49.389Z] )
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.389Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.389Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.389Z] user.save(using=self._db)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.389Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.389Z] self.save_base(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.389Z] updated = self._save_table(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.389Z] results = self._do_insert(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.389Z] return manager._insert(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.389Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.389Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.389Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.389Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.389Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.389Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.389Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.389Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.389Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5ce60>
[2024-11-23T00:19:49.389Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.389Z] params = ('md5$67lGkSdgeoh60IP0G6CXZW$20b341b816a16f90d557effe36a9ef27', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.389Z] if params is None:
[2024-11-23T00:19:49.389Z] return super().execute(query)
[2024-11-23T00:19:49.389Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.389Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.389Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.389Z] > return super().execute(query, params)
[2024-11-23T00:19:49.389Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.389Z] _______________ TokenAuthTests.test_post_form_passing_token_auth _______________
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd25010>
[2024-11-23T00:19:49.389Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.389Z] params = ('md5$flNZttLQxybUkQfDcbgyXp$e5710896bf647db828580c5e6ef9e9bd', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.389Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd25010>})
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.389Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.389Z] # ever set during testing).
[2024-11-23T00:19:49.389Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.389Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.389Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.389Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.389Z] if params is None:
[2024-11-23T00:19:49.389Z] # params default might be backend specific.
[2024-11-23T00:19:49.389Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.389Z] else:
[2024-11-23T00:19:49.389Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.389Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f1d0>
[2024-11-23T00:19:49.389Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.389Z] params = ('md5$flNZttLQxybUkQfDcbgyXp$e5710896bf647db828580c5e6ef9e9bd', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.389Z] if params is None:
[2024-11-23T00:19:49.389Z] return super().execute(query)
[2024-11-23T00:19:49.389Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.389Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.389Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.389Z] > return super().execute(query, params)
[2024-11-23T00:19:49.389Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_form_passing_token_auth>
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def setUp(self):
[2024-11-23T00:19:49.389Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.389Z] self.username = 'john'
[2024-11-23T00:19:49.389Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.389Z] self.password = 'password'
[2024-11-23T00:19:49.389Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.389Z] self.username, self.email, self.password
[2024-11-23T00:19:49.389Z] )
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.389Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.389Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.389Z] user.save(using=self._db)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.389Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.389Z] self.save_base(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.389Z] updated = self._save_table(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.389Z] results = self._do_insert(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.389Z] return manager._insert(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.389Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.389Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.389Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.389Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.389Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.389Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.389Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.389Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.389Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f1d0>
[2024-11-23T00:19:49.389Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.389Z] params = ('md5$flNZttLQxybUkQfDcbgyXp$e5710896bf647db828580c5e6ef9e9bd', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.389Z] if params is None:
[2024-11-23T00:19:49.389Z] return super().execute(query)
[2024-11-23T00:19:49.389Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.389Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.389Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.389Z] > return super().execute(query, params)
[2024-11-23T00:19:49.389Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.389Z] _______________ TokenAuthTests.test_post_json_failing_token_auth _______________
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd24110>
[2024-11-23T00:19:49.389Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.389Z] params = ('md5$dJeuf3UijKoIh481kOGr1Z$25544f9823a993d63c42b3b899d4497a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.389Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd24110>})
[2024-11-23T00:19:49.389Z]
[2024-11-23T00:19:49.389Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.389Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.389Z] # ever set during testing).
[2024-11-23T00:19:49.389Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.389Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.390Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.390Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.390Z] if params is None:
[2024-11-23T00:19:49.390Z] # params default might be backend specific.
[2024-11-23T00:19:49.390Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.390Z] else:
[2024-11-23T00:19:49.390Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.390Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c942180>
[2024-11-23T00:19:49.390Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.390Z] params = ('md5$dJeuf3UijKoIh481kOGr1Z$25544f9823a993d63c42b3b899d4497a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.390Z] if params is None:
[2024-11-23T00:19:49.390Z] return super().execute(query)
[2024-11-23T00:19:49.390Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.390Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.390Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.390Z] > return super().execute(query, params)
[2024-11-23T00:19:49.390Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_json_failing_token_auth>
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def setUp(self):
[2024-11-23T00:19:49.390Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.390Z] self.username = 'john'
[2024-11-23T00:19:49.390Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.390Z] self.password = 'password'
[2024-11-23T00:19:49.390Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.390Z] self.username, self.email, self.password
[2024-11-23T00:19:49.390Z] )
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.390Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.390Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.390Z] user.save(using=self._db)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.390Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.390Z] self.save_base(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.390Z] updated = self._save_table(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.390Z] results = self._do_insert(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.390Z] return manager._insert(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.390Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.390Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.390Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.390Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.390Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.390Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.390Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.390Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.390Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c942180>
[2024-11-23T00:19:49.390Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.390Z] params = ('md5$dJeuf3UijKoIh481kOGr1Z$25544f9823a993d63c42b3b899d4497a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.390Z] if params is None:
[2024-11-23T00:19:49.390Z] return super().execute(query)
[2024-11-23T00:19:49.390Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.390Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.390Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.390Z] > return super().execute(query, params)
[2024-11-23T00:19:49.390Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.390Z] _______________ TokenAuthTests.test_post_json_makes_one_db_query _______________
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd27dd0>
[2024-11-23T00:19:49.390Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.390Z] params = ('md5$fVDC64SanTfcAsqdhMNP2i$f8d9072e7e80b999ca16773c40ce4344', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.390Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd27dd0>})
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.390Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.390Z] # ever set during testing).
[2024-11-23T00:19:49.390Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.390Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.390Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.390Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.390Z] if params is None:
[2024-11-23T00:19:49.390Z] # params default might be backend specific.
[2024-11-23T00:19:49.390Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.390Z] else:
[2024-11-23T00:19:49.390Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.390Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.390Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.390Z] params = ('md5$fVDC64SanTfcAsqdhMNP2i$f8d9072e7e80b999ca16773c40ce4344', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.390Z] if params is None:
[2024-11-23T00:19:49.390Z] return super().execute(query)
[2024-11-23T00:19:49.390Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.390Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.390Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.390Z] > return super().execute(query, params)
[2024-11-23T00:19:49.390Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_json_makes_one_db_query>
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def setUp(self):
[2024-11-23T00:19:49.390Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.390Z] self.username = 'john'
[2024-11-23T00:19:49.390Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.390Z] self.password = 'password'
[2024-11-23T00:19:49.390Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.390Z] self.username, self.email, self.password
[2024-11-23T00:19:49.390Z] )
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.390Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.390Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.390Z] user.save(using=self._db)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.390Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.390Z] self.save_base(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.390Z] updated = self._save_table(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.390Z] results = self._do_insert(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.390Z] return manager._insert(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.390Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.390Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.390Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.390Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.390Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.390Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.390Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.390Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.390Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.390Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.390Z] params = ('md5$fVDC64SanTfcAsqdhMNP2i$f8d9072e7e80b999ca16773c40ce4344', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.390Z] if params is None:
[2024-11-23T00:19:49.390Z] return super().execute(query)
[2024-11-23T00:19:49.390Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.390Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.390Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.390Z] > return super().execute(query, params)
[2024-11-23T00:19:49.390Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.390Z] _______________ TokenAuthTests.test_post_json_passing_token_auth _______________
[2024-11-23T00:19:49.390Z]
[2024-11-23T00:19:49.390Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cccca10>
[2024-11-23T00:19:49.391Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.391Z] params = ('md5$2Vx1fG6keFfrGOKZfu55WT$863557564015de217fbafce42a0c78a8', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.391Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cccca10>})
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.391Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.391Z] # ever set during testing).
[2024-11-23T00:19:49.391Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.391Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.391Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.391Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.391Z] if params is None:
[2024-11-23T00:19:49.391Z] # params default might be backend specific.
[2024-11-23T00:19:49.391Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.391Z] else:
[2024-11-23T00:19:49.391Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.391Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c942a80>
[2024-11-23T00:19:49.391Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.391Z] params = ('md5$2Vx1fG6keFfrGOKZfu55WT$863557564015de217fbafce42a0c78a8', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.391Z] if params is None:
[2024-11-23T00:19:49.391Z] return super().execute(query)
[2024-11-23T00:19:49.391Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.391Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.391Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.391Z] > return super().execute(query, params)
[2024-11-23T00:19:49.391Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_post_json_passing_token_auth>
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def setUp(self):
[2024-11-23T00:19:49.391Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.391Z] self.username = 'john'
[2024-11-23T00:19:49.391Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.391Z] self.password = 'password'
[2024-11-23T00:19:49.391Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.391Z] self.username, self.email, self.password
[2024-11-23T00:19:49.391Z] )
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.391Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.391Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.391Z] user.save(using=self._db)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.391Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.391Z] self.save_base(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.391Z] updated = self._save_table(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.391Z] results = self._do_insert(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.391Z] return manager._insert(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.391Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.391Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.391Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.391Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.391Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.391Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.391Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.391Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.391Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c942a80>
[2024-11-23T00:19:49.391Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.391Z] params = ('md5$2Vx1fG6keFfrGOKZfu55WT$863557564015de217fbafce42a0c78a8', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.391Z] if params is None:
[2024-11-23T00:19:49.391Z] return super().execute(query)
[2024-11-23T00:19:49.391Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.391Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.391Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.391Z] > return super().execute(query, params)
[2024-11-23T00:19:49.391Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.391Z] _______ TokenAuthTests.test_token_has_auto_assigned_key_if_none_provided _______
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c288cb0>
[2024-11-23T00:19:49.391Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.391Z] params = ('md5$NUt2TBEuxlRioP8SmgbQpY$eb8d5d103eef6c14799a8bd5c68ab7f4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.391Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c288cb0>})
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.391Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.391Z] # ever set during testing).
[2024-11-23T00:19:49.391Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.391Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.391Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.391Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.391Z] if params is None:
[2024-11-23T00:19:49.391Z] # params default might be backend specific.
[2024-11-23T00:19:49.391Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.391Z] else:
[2024-11-23T00:19:49.391Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.391Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f1d0>
[2024-11-23T00:19:49.391Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.391Z] params = ('md5$NUt2TBEuxlRioP8SmgbQpY$eb8d5d103eef6c14799a8bd5c68ab7f4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.391Z] if params is None:
[2024-11-23T00:19:49.391Z] return super().execute(query)
[2024-11-23T00:19:49.391Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.391Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.391Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.391Z] > return super().execute(query, params)
[2024-11-23T00:19:49.391Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_has_auto_assigned_key_if_none_provided>
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def setUp(self):
[2024-11-23T00:19:49.391Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.391Z] self.username = 'john'
[2024-11-23T00:19:49.391Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.391Z] self.password = 'password'
[2024-11-23T00:19:49.391Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.391Z] self.username, self.email, self.password
[2024-11-23T00:19:49.391Z] )
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.391Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.391Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.391Z] user.save(using=self._db)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.391Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.391Z] self.save_base(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.391Z] updated = self._save_table(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.391Z] results = self._do_insert(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.391Z] return manager._insert(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.391Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.391Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.391Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.391Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.391Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.391Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.391Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.391Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.391Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.391Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f1d0>
[2024-11-23T00:19:49.391Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.391Z] params = ('md5$NUt2TBEuxlRioP8SmgbQpY$eb8d5d103eef6c14799a8bd5c68ab7f4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.391Z]
[2024-11-23T00:19:49.391Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.391Z] if params is None:
[2024-11-23T00:19:49.392Z] return super().execute(query)
[2024-11-23T00:19:49.392Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.392Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.392Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.392Z] > return super().execute(query, params)
[2024-11-23T00:19:49.392Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.392Z] _____________________ TokenAuthTests.test_token_login_form _____________________
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cd1d730>
[2024-11-23T00:19:49.392Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.392Z] params = ('md5$6xYlDOnO4v5MeJL21rBZJ4$42d6df9dd272df6caedb47839c75f798', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.392Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cd1d730>})
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.392Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.392Z] # ever set during testing).
[2024-11-23T00:19:49.392Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.392Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.392Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.392Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.392Z] if params is None:
[2024-11-23T00:19:49.392Z] # params default might be backend specific.
[2024-11-23T00:19:49.392Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.392Z] else:
[2024-11-23T00:19:49.392Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.392Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.392Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.392Z] params = ('md5$6xYlDOnO4v5MeJL21rBZJ4$42d6df9dd272df6caedb47839c75f798', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.392Z] if params is None:
[2024-11-23T00:19:49.392Z] return super().execute(query)
[2024-11-23T00:19:49.392Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.392Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.392Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.392Z] > return super().execute(query, params)
[2024-11-23T00:19:49.392Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_form>
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def setUp(self):
[2024-11-23T00:19:49.392Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.392Z] self.username = 'john'
[2024-11-23T00:19:49.392Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.392Z] self.password = 'password'
[2024-11-23T00:19:49.392Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.392Z] self.username, self.email, self.password
[2024-11-23T00:19:49.392Z] )
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.392Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.392Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.392Z] user.save(using=self._db)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.392Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.392Z] self.save_base(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.392Z] updated = self._save_table(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.392Z] results = self._do_insert(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.392Z] return manager._insert(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.392Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.392Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.392Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.392Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.392Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.392Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.392Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.392Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.392Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.392Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.392Z] params = ('md5$6xYlDOnO4v5MeJL21rBZJ4$42d6df9dd272df6caedb47839c75f798', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.392Z] if params is None:
[2024-11-23T00:19:49.392Z] return super().execute(query)
[2024-11-23T00:19:49.392Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.392Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.392Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.392Z] > return super().execute(query, params)
[2024-11-23T00:19:49.392Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.392Z] _____________________ TokenAuthTests.test_token_login_json _____________________
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2891f0>
[2024-11-23T00:19:49.392Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.392Z] params = ('md5$10N5o1mBoZMixRLdFBdFSc$b27ef716a3adb504f8a089d24b2eef6d', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.392Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2891f0>})
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.392Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.392Z] # ever set during testing).
[2024-11-23T00:19:49.392Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.392Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.392Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.392Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.392Z] if params is None:
[2024-11-23T00:19:49.392Z] # params default might be backend specific.
[2024-11-23T00:19:49.392Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.392Z] else:
[2024-11-23T00:19:49.392Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.392Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe330>
[2024-11-23T00:19:49.392Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.392Z] params = ('md5$10N5o1mBoZMixRLdFBdFSc$b27ef716a3adb504f8a089d24b2eef6d', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.392Z] if params is None:
[2024-11-23T00:19:49.392Z] return super().execute(query)
[2024-11-23T00:19:49.392Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.392Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.392Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.392Z] > return super().execute(query, params)
[2024-11-23T00:19:49.392Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_json>
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] def setUp(self):
[2024-11-23T00:19:49.392Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.392Z] self.username = 'john'
[2024-11-23T00:19:49.392Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.392Z] self.password = 'password'
[2024-11-23T00:19:49.392Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.392Z] self.username, self.email, self.password
[2024-11-23T00:19:49.392Z] )
[2024-11-23T00:19:49.392Z]
[2024-11-23T00:19:49.392Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.392Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.392Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.392Z] user.save(using=self._db)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.392Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.392Z] self.save_base(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.392Z] updated = self._save_table(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.392Z] results = self._do_insert(
[2024-11-23T00:19:49.392Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.393Z] return manager._insert(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.393Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.393Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.393Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.393Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.393Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.393Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.393Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.393Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.393Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0fe330>
[2024-11-23T00:19:49.393Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.393Z] params = ('md5$10N5o1mBoZMixRLdFBdFSc$b27ef716a3adb504f8a089d24b2eef6d', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.393Z] if params is None:
[2024-11-23T00:19:49.393Z] return super().execute(query)
[2024-11-23T00:19:49.393Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.393Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.393Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.393Z] > return super().execute(query, params)
[2024-11-23T00:19:49.393Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.393Z] ________________ TokenAuthTests.test_token_login_json_bad_creds ________________
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c289f70>
[2024-11-23T00:19:49.393Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.393Z] params = ('md5$L9g8ogrvqgNbYwZGs7daMT$0cdf029b2141aa4cd13e079bb550688c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.393Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c289f70>})
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.393Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.393Z] # ever set during testing).
[2024-11-23T00:19:49.393Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.393Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.393Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.393Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.393Z] if params is None:
[2024-11-23T00:19:49.393Z] # params default might be backend specific.
[2024-11-23T00:19:49.393Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.393Z] else:
[2024-11-23T00:19:49.393Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.393Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.393Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.393Z] params = ('md5$L9g8ogrvqgNbYwZGs7daMT$0cdf029b2141aa4cd13e079bb550688c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.393Z] if params is None:
[2024-11-23T00:19:49.393Z] return super().execute(query)
[2024-11-23T00:19:49.393Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.393Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.393Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.393Z] > return super().execute(query, params)
[2024-11-23T00:19:49.393Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_json_bad_creds>
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def setUp(self):
[2024-11-23T00:19:49.393Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.393Z] self.username = 'john'
[2024-11-23T00:19:49.393Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.393Z] self.password = 'password'
[2024-11-23T00:19:49.393Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.393Z] self.username, self.email, self.password
[2024-11-23T00:19:49.393Z] )
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.393Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.393Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.393Z] user.save(using=self._db)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.393Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.393Z] self.save_base(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.393Z] updated = self._save_table(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.393Z] results = self._do_insert(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.393Z] return manager._insert(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.393Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.393Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.393Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.393Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.393Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.393Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.393Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.393Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.393Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.393Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.393Z] params = ('md5$L9g8ogrvqgNbYwZGs7daMT$0cdf029b2141aa4cd13e079bb550688c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.393Z] if params is None:
[2024-11-23T00:19:49.393Z] return super().execute(query)
[2024-11-23T00:19:49.393Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.393Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.393Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.393Z] > return super().execute(query, params)
[2024-11-23T00:19:49.393Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.393Z] _____________ TokenAuthTests.test_token_login_json_missing_fields ______________
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c27f050>
[2024-11-23T00:19:49.393Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.393Z] params = ('md5$Z5Mrk27ZYlO5mueJycdcht$e3ab8b78e4466d1af0ac4c9d3d1f5d91', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.393Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c27f050>})
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.393Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.393Z] # ever set during testing).
[2024-11-23T00:19:49.393Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.393Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.393Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.393Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.393Z] if params is None:
[2024-11-23T00:19:49.393Z] # params default might be backend specific.
[2024-11-23T00:19:49.393Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.393Z] else:
[2024-11-23T00:19:49.393Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.393Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0ff6e0>
[2024-11-23T00:19:49.393Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.393Z] params = ('md5$Z5Mrk27ZYlO5mueJycdcht$e3ab8b78e4466d1af0ac4c9d3d1f5d91', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.393Z] if params is None:
[2024-11-23T00:19:49.393Z] return super().execute(query)
[2024-11-23T00:19:49.393Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.393Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.393Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.393Z] > return super().execute(query, params)
[2024-11-23T00:19:49.393Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] self = <tests.authentication.test_authentication.TokenAuthTests testMethod=test_token_login_json_missing_fields>
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] def setUp(self):
[2024-11-23T00:19:49.393Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.393Z] self.username = 'john'
[2024-11-23T00:19:49.393Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.393Z] self.password = 'password'
[2024-11-23T00:19:49.393Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.393Z] self.username, self.email, self.password
[2024-11-23T00:19:49.393Z] )
[2024-11-23T00:19:49.393Z]
[2024-11-23T00:19:49.393Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.393Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.393Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.393Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.394Z] user.save(using=self._db)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.394Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.394Z] self.save_base(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.394Z] updated = self._save_table(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.394Z] results = self._do_insert(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.394Z] return manager._insert(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.394Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.394Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.394Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.394Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.394Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.394Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.394Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.394Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.394Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521d0ff6e0>
[2024-11-23T00:19:49.394Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.394Z] params = ('md5$Z5Mrk27ZYlO5mueJycdcht$e3ab8b78e4466d1af0ac4c9d3d1f5d91', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.394Z] if params is None:
[2024-11-23T00:19:49.394Z] return super().execute(query)
[2024-11-23T00:19:49.394Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.394Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.394Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.394Z] > return super().execute(query, params)
[2024-11-23T00:19:49.394Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.394Z] _____ CustomTokenAuthTests.test_fail_authentication_if_user_is_not_active ______
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c27cc50>
[2024-11-23T00:19:49.394Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.394Z] params = ('md5$3fYs9y7FDJECnBqHQEKVqP$626ba68e4b89733b6ac46d80d826892b', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.394Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c27cc50>})
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.394Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.394Z] # ever set during testing).
[2024-11-23T00:19:49.394Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.394Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.394Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.394Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.394Z] if params is None:
[2024-11-23T00:19:49.394Z] # params default might be backend specific.
[2024-11-23T00:19:49.394Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.394Z] else:
[2024-11-23T00:19:49.394Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.394Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.394Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.394Z] params = ('md5$3fYs9y7FDJECnBqHQEKVqP$626ba68e4b89733b6ac46d80d826892b', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.394Z] if params is None:
[2024-11-23T00:19:49.394Z] return super().execute(query)
[2024-11-23T00:19:49.394Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.394Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.394Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.394Z] > return super().execute(query, params)
[2024-11-23T00:19:49.394Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_authentication_if_user_is_not_active>
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def setUp(self):
[2024-11-23T00:19:49.394Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.394Z] self.username = 'john'
[2024-11-23T00:19:49.394Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.394Z] self.password = 'password'
[2024-11-23T00:19:49.394Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.394Z] self.username, self.email, self.password
[2024-11-23T00:19:49.394Z] )
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.394Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.394Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.394Z] user.save(using=self._db)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.394Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.394Z] self.save_base(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.394Z] updated = self._save_table(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.394Z] results = self._do_insert(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.394Z] return manager._insert(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.394Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.394Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.394Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.394Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.394Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.394Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.394Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.394Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.394Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.394Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.394Z] params = ('md5$3fYs9y7FDJECnBqHQEKVqP$626ba68e4b89733b6ac46d80d826892b', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.394Z] if params is None:
[2024-11-23T00:19:49.394Z] return super().execute(query)
[2024-11-23T00:19:49.394Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.394Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.394Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.394Z] > return super().execute(query, params)
[2024-11-23T00:19:49.394Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.394Z] _____ CustomTokenAuthTests.test_fail_post_form_passing_invalid_token_auth ______
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c27d010>
[2024-11-23T00:19:49.394Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.394Z] params = ('md5$KYfOQyCo6Fy3XwGQOteDkP$a5f9daee8565a98ae591b243a440a53e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.394Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c27d010>})
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.394Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.394Z] # ever set during testing).
[2024-11-23T00:19:49.394Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.394Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.394Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.394Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.394Z] if params is None:
[2024-11-23T00:19:49.394Z] # params default might be backend specific.
[2024-11-23T00:19:49.394Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.394Z] else:
[2024-11-23T00:19:49.394Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.394Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d2e0>
[2024-11-23T00:19:49.394Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.394Z] params = ('md5$KYfOQyCo6Fy3XwGQOteDkP$a5f9daee8565a98ae591b243a440a53e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.394Z] if params is None:
[2024-11-23T00:19:49.394Z] return super().execute(query)
[2024-11-23T00:19:49.394Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.394Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.394Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.394Z] > return super().execute(query, params)
[2024-11-23T00:19:49.394Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_form_passing_invalid_token_auth>
[2024-11-23T00:19:49.394Z]
[2024-11-23T00:19:49.394Z] def setUp(self):
[2024-11-23T00:19:49.395Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.395Z] self.username = 'john'
[2024-11-23T00:19:49.395Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.395Z] self.password = 'password'
[2024-11-23T00:19:49.395Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.395Z] self.username, self.email, self.password
[2024-11-23T00:19:49.395Z] )
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.395Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.395Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.395Z] user.save(using=self._db)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.395Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.395Z] self.save_base(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.395Z] updated = self._save_table(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.395Z] results = self._do_insert(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.395Z] return manager._insert(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.395Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.395Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.395Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.395Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.395Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.395Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.395Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.395Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.395Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d2e0>
[2024-11-23T00:19:49.395Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.395Z] params = ('md5$KYfOQyCo6Fy3XwGQOteDkP$a5f9daee8565a98ae591b243a440a53e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.395Z] if params is None:
[2024-11-23T00:19:49.395Z] return super().execute(query)
[2024-11-23T00:19:49.395Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.395Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.395Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.395Z] > return super().execute(query, params)
[2024-11-23T00:19:49.395Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.395Z] ___ CustomTokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth ____
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c27e870>
[2024-11-23T00:19:49.395Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.395Z] params = ('md5$ePEpkOeDyUlIu1jLJAj3u1$c511526b74594db54a620adcefe2b39c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.395Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c27e870>})
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.395Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.395Z] # ever set during testing).
[2024-11-23T00:19:49.395Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.395Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.395Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.395Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.395Z] if params is None:
[2024-11-23T00:19:49.395Z] # params default might be backend specific.
[2024-11-23T00:19:49.395Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.395Z] else:
[2024-11-23T00:19:49.395Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.395Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.395Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.395Z] params = ('md5$ePEpkOeDyUlIu1jLJAj3u1$c511526b74594db54a620adcefe2b39c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.395Z] if params is None:
[2024-11-23T00:19:49.395Z] return super().execute(query)
[2024-11-23T00:19:49.395Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.395Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.395Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.395Z] > return super().execute(query, params)
[2024-11-23T00:19:49.395Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_form_passing_nonexistent_token_auth>
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def setUp(self):
[2024-11-23T00:19:49.395Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.395Z] self.username = 'john'
[2024-11-23T00:19:49.395Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.395Z] self.password = 'password'
[2024-11-23T00:19:49.395Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.395Z] self.username, self.email, self.password
[2024-11-23T00:19:49.395Z] )
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.395Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.395Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.395Z] user.save(using=self._db)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.395Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.395Z] self.save_base(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.395Z] updated = self._save_table(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.395Z] results = self._do_insert(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.395Z] return manager._insert(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.395Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.395Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.395Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.395Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.395Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.395Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.395Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.395Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.395Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f530>
[2024-11-23T00:19:49.395Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.395Z] params = ('md5$ePEpkOeDyUlIu1jLJAj3u1$c511526b74594db54a620adcefe2b39c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.395Z] if params is None:
[2024-11-23T00:19:49.395Z] return super().execute(query)
[2024-11-23T00:19:49.395Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.395Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.395Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.395Z] > return super().execute(query, params)
[2024-11-23T00:19:49.395Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.395Z] _________ CustomTokenAuthTests.test_fail_post_if_token_contains_spaces _________
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2bec30>
[2024-11-23T00:19:49.395Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.395Z] params = ('md5$mcnocT62Sp9SZk7CGi0hXP$50f51b457364447756c9a650c54bd661', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.395Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2bec30>})
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.395Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.395Z] # ever set during testing).
[2024-11-23T00:19:49.395Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.395Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.395Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.395Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.395Z] if params is None:
[2024-11-23T00:19:49.395Z] # params default might be backend specific.
[2024-11-23T00:19:49.395Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.395Z] else:
[2024-11-23T00:19:49.395Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.395Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943ec0>
[2024-11-23T00:19:49.395Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.395Z] params = ('md5$mcnocT62Sp9SZk7CGi0hXP$50f51b457364447756c9a650c54bd661', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.395Z]
[2024-11-23T00:19:49.395Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.395Z] if params is None:
[2024-11-23T00:19:49.396Z] return super().execute(query)
[2024-11-23T00:19:49.396Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.396Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.396Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.396Z] > return super().execute(query, params)
[2024-11-23T00:19:49.396Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_if_token_contains_spaces>
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] def setUp(self):
[2024-11-23T00:19:49.396Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.396Z] self.username = 'john'
[2024-11-23T00:19:49.396Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.396Z] self.password = 'password'
[2024-11-23T00:19:49.396Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.396Z] self.username, self.email, self.password
[2024-11-23T00:19:49.396Z] )
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.396Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.396Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.396Z] user.save(using=self._db)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.396Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.396Z] self.save_base(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.396Z] updated = self._save_table(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.396Z] results = self._do_insert(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.396Z] return manager._insert(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.396Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.396Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.396Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.396Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.396Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.396Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.396Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.396Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.396Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943ec0>
[2024-11-23T00:19:49.396Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.396Z] params = ('md5$mcnocT62Sp9SZk7CGi0hXP$50f51b457364447756c9a650c54bd661', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.396Z] if params is None:
[2024-11-23T00:19:49.396Z] return super().execute(query)
[2024-11-23T00:19:49.396Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.396Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.396Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.396Z] > return super().execute(query, params)
[2024-11-23T00:19:49.396Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.396Z] ___________ CustomTokenAuthTests.test_fail_post_if_token_is_missing ____________
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2bf8f0>
[2024-11-23T00:19:49.396Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.396Z] params = ('md5$umkX4ikgQF7xzd1oTp3oDf$cc23e218436466694aaf79c993153be3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.396Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2bf8f0>})
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.396Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.396Z] # ever set during testing).
[2024-11-23T00:19:49.396Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.396Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.396Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.396Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.396Z] if params is None:
[2024-11-23T00:19:49.396Z] # params default might be backend specific.
[2024-11-23T00:19:49.396Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.396Z] else:
[2024-11-23T00:19:49.396Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.396Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943380>
[2024-11-23T00:19:49.396Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.396Z] params = ('md5$umkX4ikgQF7xzd1oTp3oDf$cc23e218436466694aaf79c993153be3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.396Z] if params is None:
[2024-11-23T00:19:49.396Z] return super().execute(query)
[2024-11-23T00:19:49.396Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.396Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.396Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.396Z] > return super().execute(query, params)
[2024-11-23T00:19:49.396Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_fail_post_if_token_is_missing>
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] def setUp(self):
[2024-11-23T00:19:49.396Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.396Z] self.username = 'john'
[2024-11-23T00:19:49.396Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.396Z] self.password = 'password'
[2024-11-23T00:19:49.396Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.396Z] self.username, self.email, self.password
[2024-11-23T00:19:49.396Z] )
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.396Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.396Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.396Z] user.save(using=self._db)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.396Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.396Z] self.save_base(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.396Z] updated = self._save_table(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.396Z] results = self._do_insert(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.396Z] return manager._insert(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.396Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.396Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.396Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.396Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.396Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.396Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.396Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.396Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.396Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943380>
[2024-11-23T00:19:49.396Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.396Z] params = ('md5$umkX4ikgQF7xzd1oTp3oDf$cc23e218436466694aaf79c993153be3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.396Z] if params is None:
[2024-11-23T00:19:49.396Z] return super().execute(query)
[2024-11-23T00:19:49.396Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.396Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.396Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.396Z] > return super().execute(query, params)
[2024-11-23T00:19:49.396Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.396Z] ____________ CustomTokenAuthTests.test_post_form_failing_token_auth ____________
[2024-11-23T00:19:49.396Z]
[2024-11-23T00:19:49.396Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c291550>
[2024-11-23T00:19:49.397Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.397Z] params = ('md5$mi8A5kN1ZzOULvfYYG3kyB$509117163119e504cd0083b8b08d417c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.397Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c291550>})
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.397Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.397Z] # ever set during testing).
[2024-11-23T00:19:49.397Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.397Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.397Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.397Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.397Z] if params is None:
[2024-11-23T00:19:49.397Z] # params default might be backend specific.
[2024-11-23T00:19:49.397Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.397Z] else:
[2024-11-23T00:19:49.397Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.397Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9432f0>
[2024-11-23T00:19:49.397Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.397Z] params = ('md5$mi8A5kN1ZzOULvfYYG3kyB$509117163119e504cd0083b8b08d417c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.397Z] if params is None:
[2024-11-23T00:19:49.397Z] return super().execute(query)
[2024-11-23T00:19:49.397Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.397Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.397Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.397Z] > return super().execute(query, params)
[2024-11-23T00:19:49.397Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_form_failing_token_auth>
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def setUp(self):
[2024-11-23T00:19:49.397Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.397Z] self.username = 'john'
[2024-11-23T00:19:49.397Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.397Z] self.password = 'password'
[2024-11-23T00:19:49.397Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.397Z] self.username, self.email, self.password
[2024-11-23T00:19:49.397Z] )
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.397Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.397Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.397Z] user.save(using=self._db)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.397Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.397Z] self.save_base(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.397Z] updated = self._save_table(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.397Z] results = self._do_insert(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.397Z] return manager._insert(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.397Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.397Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.397Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.397Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.397Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.397Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.397Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.397Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.397Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9432f0>
[2024-11-23T00:19:49.397Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.397Z] params = ('md5$mi8A5kN1ZzOULvfYYG3kyB$509117163119e504cd0083b8b08d417c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.397Z] if params is None:
[2024-11-23T00:19:49.397Z] return super().execute(query)
[2024-11-23T00:19:49.397Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.397Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.397Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.397Z] > return super().execute(query, params)
[2024-11-23T00:19:49.397Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.397Z] ____________ CustomTokenAuthTests.test_post_form_passing_token_auth ____________
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c291070>
[2024-11-23T00:19:49.397Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.397Z] params = ('md5$zCykmJZU2MUZvwBVXh2YAL$4c6acd26ab9c630000282d01ba67b403', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.397Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c291070>})
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.397Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.397Z] # ever set during testing).
[2024-11-23T00:19:49.397Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.397Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.397Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.397Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.397Z] if params is None:
[2024-11-23T00:19:49.397Z] # params default might be backend specific.
[2024-11-23T00:19:49.397Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.397Z] else:
[2024-11-23T00:19:49.397Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.397Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d2e0>
[2024-11-23T00:19:49.397Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.397Z] params = ('md5$zCykmJZU2MUZvwBVXh2YAL$4c6acd26ab9c630000282d01ba67b403', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.397Z] if params is None:
[2024-11-23T00:19:49.397Z] return super().execute(query)
[2024-11-23T00:19:49.397Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.397Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.397Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.397Z] > return super().execute(query, params)
[2024-11-23T00:19:49.397Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_form_passing_token_auth>
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def setUp(self):
[2024-11-23T00:19:49.397Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.397Z] self.username = 'john'
[2024-11-23T00:19:49.397Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.397Z] self.password = 'password'
[2024-11-23T00:19:49.397Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.397Z] self.username, self.email, self.password
[2024-11-23T00:19:49.397Z] )
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.397Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.397Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.397Z] user.save(using=self._db)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.397Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.397Z] self.save_base(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.397Z] updated = self._save_table(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.397Z] results = self._do_insert(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.397Z] return manager._insert(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.397Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.397Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.397Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.397Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.397Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.397Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.397Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.397Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.397Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.397Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5d2e0>
[2024-11-23T00:19:49.397Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.397Z] params = ('md5$zCykmJZU2MUZvwBVXh2YAL$4c6acd26ab9c630000282d01ba67b403', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.397Z]
[2024-11-23T00:19:49.397Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.397Z] if params is None:
[2024-11-23T00:19:49.397Z] return super().execute(query)
[2024-11-23T00:19:49.397Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.398Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.398Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.398Z] > return super().execute(query, params)
[2024-11-23T00:19:49.398Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.398Z] ____________ CustomTokenAuthTests.test_post_json_failing_token_auth ____________
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c291790>
[2024-11-23T00:19:49.398Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.398Z] params = ('md5$K6sYuaA9dAkWE77NpG16ZH$fea2835ddf317d588750a3a17cfb62e4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.398Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c291790>})
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.398Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.398Z] # ever set during testing).
[2024-11-23T00:19:49.398Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.398Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.398Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.398Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.398Z] if params is None:
[2024-11-23T00:19:49.398Z] # params default might be backend specific.
[2024-11-23T00:19:49.398Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.398Z] else:
[2024-11-23T00:19:49.398Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.398Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9424e0>
[2024-11-23T00:19:49.398Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.398Z] params = ('md5$K6sYuaA9dAkWE77NpG16ZH$fea2835ddf317d588750a3a17cfb62e4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.398Z] if params is None:
[2024-11-23T00:19:49.398Z] return super().execute(query)
[2024-11-23T00:19:49.398Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.398Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.398Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.398Z] > return super().execute(query, params)
[2024-11-23T00:19:49.398Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_json_failing_token_auth>
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def setUp(self):
[2024-11-23T00:19:49.398Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.398Z] self.username = 'john'
[2024-11-23T00:19:49.398Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.398Z] self.password = 'password'
[2024-11-23T00:19:49.398Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.398Z] self.username, self.email, self.password
[2024-11-23T00:19:49.398Z] )
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.398Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.398Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.398Z] user.save(using=self._db)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.398Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.398Z] self.save_base(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.398Z] updated = self._save_table(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.398Z] results = self._do_insert(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.398Z] return manager._insert(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.398Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.398Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.398Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.398Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.398Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.398Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.398Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.398Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.398Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9424e0>
[2024-11-23T00:19:49.398Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.398Z] params = ('md5$K6sYuaA9dAkWE77NpG16ZH$fea2835ddf317d588750a3a17cfb62e4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.398Z] if params is None:
[2024-11-23T00:19:49.398Z] return super().execute(query)
[2024-11-23T00:19:49.398Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.398Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.398Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.398Z] > return super().execute(query, params)
[2024-11-23T00:19:49.398Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.398Z] ____________ CustomTokenAuthTests.test_post_json_makes_one_db_query ____________
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2bf590>
[2024-11-23T00:19:49.398Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.398Z] params = ('md5$SC1GzIp5zQ19FPmV45f1vn$6430f91221d196a6ec47551371fcdb19', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.398Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2bf590>})
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.398Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.398Z] # ever set during testing).
[2024-11-23T00:19:49.398Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.398Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.398Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.398Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.398Z] if params is None:
[2024-11-23T00:19:49.398Z] # params default might be backend specific.
[2024-11-23T00:19:49.398Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.398Z] else:
[2024-11-23T00:19:49.398Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.398Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943da0>
[2024-11-23T00:19:49.398Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.398Z] params = ('md5$SC1GzIp5zQ19FPmV45f1vn$6430f91221d196a6ec47551371fcdb19', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.398Z] if params is None:
[2024-11-23T00:19:49.398Z] return super().execute(query)
[2024-11-23T00:19:49.398Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.398Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.398Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.398Z] > return super().execute(query, params)
[2024-11-23T00:19:49.398Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_json_makes_one_db_query>
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] def setUp(self):
[2024-11-23T00:19:49.398Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.398Z] self.username = 'john'
[2024-11-23T00:19:49.398Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.398Z] self.password = 'password'
[2024-11-23T00:19:49.398Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.398Z] self.username, self.email, self.password
[2024-11-23T00:19:49.398Z] )
[2024-11-23T00:19:49.398Z]
[2024-11-23T00:19:49.398Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.398Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.398Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.398Z] user.save(using=self._db)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.398Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.398Z] self.save_base(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.398Z] updated = self._save_table(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.398Z] results = self._do_insert(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.398Z] return manager._insert(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.398Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.398Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.398Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.398Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.398Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.398Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.398Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.398Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.399Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.399Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943da0>
[2024-11-23T00:19:49.399Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.399Z] params = ('md5$SC1GzIp5zQ19FPmV45f1vn$6430f91221d196a6ec47551371fcdb19', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.399Z] if params is None:
[2024-11-23T00:19:49.399Z] return super().execute(query)
[2024-11-23T00:19:49.399Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.399Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.399Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.399Z] > return super().execute(query, params)
[2024-11-23T00:19:49.399Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.399Z] ____________ CustomTokenAuthTests.test_post_json_passing_token_auth ____________
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2be810>
[2024-11-23T00:19:49.399Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.399Z] params = ('md5$6HzKrNvK9Qnzzv2lZtoG2H$f19355b6f909d283578def80e92b3554', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.399Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2be810>})
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.399Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.399Z] # ever set during testing).
[2024-11-23T00:19:49.399Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.399Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.399Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.399Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.399Z] if params is None:
[2024-11-23T00:19:49.399Z] # params default might be backend specific.
[2024-11-23T00:19:49.399Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.399Z] else:
[2024-11-23T00:19:49.399Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.399Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c940b90>
[2024-11-23T00:19:49.399Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.399Z] params = ('md5$6HzKrNvK9Qnzzv2lZtoG2H$f19355b6f909d283578def80e92b3554', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.399Z] if params is None:
[2024-11-23T00:19:49.399Z] return super().execute(query)
[2024-11-23T00:19:49.399Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.399Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.399Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.399Z] > return super().execute(query, params)
[2024-11-23T00:19:49.399Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <tests.authentication.test_authentication.CustomTokenAuthTests testMethod=test_post_json_passing_token_auth>
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def setUp(self):
[2024-11-23T00:19:49.399Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.399Z] self.username = 'john'
[2024-11-23T00:19:49.399Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.399Z] self.password = 'password'
[2024-11-23T00:19:49.399Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.399Z] self.username, self.email, self.password
[2024-11-23T00:19:49.399Z] )
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.399Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.399Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.399Z] user.save(using=self._db)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.399Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.399Z] self.save_base(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.399Z] updated = self._save_table(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.399Z] results = self._do_insert(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.399Z] return manager._insert(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.399Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.399Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.399Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.399Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.399Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.399Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.399Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.399Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.399Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c940b90>
[2024-11-23T00:19:49.399Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.399Z] params = ('md5$6HzKrNvK9Qnzzv2lZtoG2H$f19355b6f909d283578def80e92b3554', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.399Z] if params is None:
[2024-11-23T00:19:49.399Z] return super().execute(query)
[2024-11-23T00:19:49.399Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.399Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.399Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.399Z] > return super().execute(query, params)
[2024-11-23T00:19:49.399Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.399Z] __ CustomKeywordTokenAuthTests.test_fail_authentication_if_user_is_not_active __
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2e58b0>
[2024-11-23T00:19:49.399Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.399Z] params = ('md5$CVfarZpPvbhr133VRXvxCc$06c01aacdefd6e9edcfed6390f9e87f7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.399Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2e58b0>})
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.399Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.399Z] # ever set during testing).
[2024-11-23T00:19:49.399Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.399Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.399Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.399Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.399Z] if params is None:
[2024-11-23T00:19:49.399Z] # params default might be backend specific.
[2024-11-23T00:19:49.399Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.399Z] else:
[2024-11-23T00:19:49.399Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.399Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a20f0>
[2024-11-23T00:19:49.399Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.399Z] params = ('md5$CVfarZpPvbhr133VRXvxCc$06c01aacdefd6e9edcfed6390f9e87f7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.399Z] if params is None:
[2024-11-23T00:19:49.399Z] return super().execute(query)
[2024-11-23T00:19:49.399Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.399Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.399Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.399Z] > return super().execute(query, params)
[2024-11-23T00:19:49.399Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_authentication_if_user_is_not_active>
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] def setUp(self):
[2024-11-23T00:19:49.399Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.399Z] self.username = 'john'
[2024-11-23T00:19:49.399Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.399Z] self.password = 'password'
[2024-11-23T00:19:49.399Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.399Z] self.username, self.email, self.password
[2024-11-23T00:19:49.399Z] )
[2024-11-23T00:19:49.399Z]
[2024-11-23T00:19:49.399Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.399Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.399Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.399Z] user.save(using=self._db)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.399Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.399Z] self.save_base(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.399Z] updated = self._save_table(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.399Z] results = self._do_insert(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.399Z] return manager._insert(
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.399Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.399Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.400Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.400Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.400Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.400Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.400Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.400Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.400Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.400Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a20f0>
[2024-11-23T00:19:49.400Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.400Z] params = ('md5$CVfarZpPvbhr133VRXvxCc$06c01aacdefd6e9edcfed6390f9e87f7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.400Z] if params is None:
[2024-11-23T00:19:49.400Z] return super().execute(query)
[2024-11-23T00:19:49.400Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.400Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.400Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.400Z] > return super().execute(query, params)
[2024-11-23T00:19:49.400Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.400Z] __ CustomKeywordTokenAuthTests.test_fail_post_form_passing_invalid_token_auth __
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2e5430>
[2024-11-23T00:19:49.400Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.400Z] params = ('md5$k6EDa2LqTbXURnwcVIXuZr$15a0737c48c7627bfa8028e91ad9b407', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.400Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2e5430>})
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.400Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.400Z] # ever set during testing).
[2024-11-23T00:19:49.400Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.400Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.400Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.400Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.400Z] if params is None:
[2024-11-23T00:19:49.400Z] # params default might be backend specific.
[2024-11-23T00:19:49.400Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.400Z] else:
[2024-11-23T00:19:49.400Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.400Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c942cc0>
[2024-11-23T00:19:49.400Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.400Z] params = ('md5$k6EDa2LqTbXURnwcVIXuZr$15a0737c48c7627bfa8028e91ad9b407', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.400Z] if params is None:
[2024-11-23T00:19:49.400Z] return super().execute(query)
[2024-11-23T00:19:49.400Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.400Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.400Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.400Z] > return super().execute(query, params)
[2024-11-23T00:19:49.400Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_form_passing_invalid_token_auth>
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def setUp(self):
[2024-11-23T00:19:49.400Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.400Z] self.username = 'john'
[2024-11-23T00:19:49.400Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.400Z] self.password = 'password'
[2024-11-23T00:19:49.400Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.400Z] self.username, self.email, self.password
[2024-11-23T00:19:49.400Z] )
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.400Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.400Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.400Z] user.save(using=self._db)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.400Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.400Z] self.save_base(
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.400Z] updated = self._save_table(
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.400Z] results = self._do_insert(
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.400Z] return manager._insert(
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.400Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.400Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.400Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.400Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.400Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.400Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.400Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.400Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.400Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c942cc0>
[2024-11-23T00:19:49.400Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.400Z] params = ('md5$k6EDa2LqTbXURnwcVIXuZr$15a0737c48c7627bfa8028e91ad9b407', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.400Z] if params is None:
[2024-11-23T00:19:49.400Z] return super().execute(query)
[2024-11-23T00:19:49.400Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.400Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.400Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.400Z] > return super().execute(query, params)
[2024-11-23T00:19:49.400Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.400Z] _ CustomKeywordTokenAuthTests.test_fail_post_form_passing_nonexistent_token_auth _
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2e6690>
[2024-11-23T00:19:49.400Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.400Z] params = ('md5$CQvKSKFeBBf6PdgbhHLMvq$bb917777737e583c87b551fb6ccb5f27', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.400Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2e6690>})
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.400Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.400Z] # ever set during testing).
[2024-11-23T00:19:49.400Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.400Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.400Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.400Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.400Z] if params is None:
[2024-11-23T00:19:49.400Z] # params default might be backend specific.
[2024-11-23T00:19:49.400Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.400Z] else:
[2024-11-23T00:19:49.400Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.400Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9420f0>
[2024-11-23T00:19:49.400Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.400Z] params = ('md5$CQvKSKFeBBf6PdgbhHLMvq$bb917777737e583c87b551fb6ccb5f27', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.400Z] if params is None:
[2024-11-23T00:19:49.400Z] return super().execute(query)
[2024-11-23T00:19:49.400Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.400Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.400Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.400Z] > return super().execute(query, params)
[2024-11-23T00:19:49.400Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.400Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.400Z]
[2024-11-23T00:19:49.401Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_form_passing_nonexistent_token_auth>
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def setUp(self):
[2024-11-23T00:19:49.401Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.401Z] self.username = 'john'
[2024-11-23T00:19:49.401Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.401Z] self.password = 'password'
[2024-11-23T00:19:49.401Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.401Z] self.username, self.email, self.password
[2024-11-23T00:19:49.401Z] )
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.401Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.401Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.401Z] user.save(using=self._db)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.401Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.401Z] self.save_base(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.401Z] updated = self._save_table(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.401Z] results = self._do_insert(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.401Z] return manager._insert(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.401Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.401Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.401Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.401Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.401Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.401Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.401Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.401Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.401Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9420f0>
[2024-11-23T00:19:49.401Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.401Z] params = ('md5$CQvKSKFeBBf6PdgbhHLMvq$bb917777737e583c87b551fb6ccb5f27', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.401Z] if params is None:
[2024-11-23T00:19:49.401Z] return super().execute(query)
[2024-11-23T00:19:49.401Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.401Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.401Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.401Z] > return super().execute(query, params)
[2024-11-23T00:19:49.401Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.401Z] _____ CustomKeywordTokenAuthTests.test_fail_post_if_token_contains_spaces ______
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2bc890>
[2024-11-23T00:19:49.401Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.401Z] params = ('md5$f5qQHx2v8U1YNkrbQ5zq2V$e7ebbea8d2038fb64d14b075a8e6e601', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.401Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2bc890>})
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.401Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.401Z] # ever set during testing).
[2024-11-23T00:19:49.401Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.401Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.401Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.401Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.401Z] if params is None:
[2024-11-23T00:19:49.401Z] # params default might be backend specific.
[2024-11-23T00:19:49.401Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.401Z] else:
[2024-11-23T00:19:49.401Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.401Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a20f0>
[2024-11-23T00:19:49.401Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.401Z] params = ('md5$f5qQHx2v8U1YNkrbQ5zq2V$e7ebbea8d2038fb64d14b075a8e6e601', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.401Z] if params is None:
[2024-11-23T00:19:49.401Z] return super().execute(query)
[2024-11-23T00:19:49.401Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.401Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.401Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.401Z] > return super().execute(query, params)
[2024-11-23T00:19:49.401Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_if_token_contains_spaces>
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def setUp(self):
[2024-11-23T00:19:49.401Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.401Z] self.username = 'john'
[2024-11-23T00:19:49.401Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.401Z] self.password = 'password'
[2024-11-23T00:19:49.401Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.401Z] self.username, self.email, self.password
[2024-11-23T00:19:49.401Z] )
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.401Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.401Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.401Z] user.save(using=self._db)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.401Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.401Z] self.save_base(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.401Z] updated = self._save_table(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.401Z] results = self._do_insert(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.401Z] return manager._insert(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.401Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.401Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.401Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.401Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.401Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.401Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.401Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.401Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.401Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a20f0>
[2024-11-23T00:19:49.401Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.401Z] params = ('md5$f5qQHx2v8U1YNkrbQ5zq2V$e7ebbea8d2038fb64d14b075a8e6e601', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.401Z] if params is None:
[2024-11-23T00:19:49.401Z] return super().execute(query)
[2024-11-23T00:19:49.401Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.401Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.401Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.401Z] > return super().execute(query, params)
[2024-11-23T00:19:49.401Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.401Z] ________ CustomKeywordTokenAuthTests.test_fail_post_if_token_is_missing ________
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c282690>
[2024-11-23T00:19:49.401Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.401Z] params = ('md5$FEORe7kHcxl6zRTKvrCrRT$0bbc137902b2a0735a6beff0cade46f6', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.401Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c282690>})
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.401Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.401Z] # ever set during testing).
[2024-11-23T00:19:49.401Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.401Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.401Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.401Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.401Z] if params is None:
[2024-11-23T00:19:49.401Z] # params default might be backend specific.
[2024-11-23T00:19:49.401Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.401Z] else:
[2024-11-23T00:19:49.401Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.401Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.401Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943020>
[2024-11-23T00:19:49.401Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.401Z] params = ('md5$FEORe7kHcxl6zRTKvrCrRT$0bbc137902b2a0735a6beff0cade46f6', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.401Z]
[2024-11-23T00:19:49.402Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.402Z] if params is None:
[2024-11-23T00:19:49.402Z] return super().execute(query)
[2024-11-23T00:19:49.402Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.402Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.402Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.402Z] > return super().execute(query, params)
[2024-11-23T00:19:49.402Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_fail_post_if_token_is_missing>
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def setUp(self):
[2024-11-23T00:19:49.402Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.402Z] self.username = 'john'
[2024-11-23T00:19:49.402Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.402Z] self.password = 'password'
[2024-11-23T00:19:49.402Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.402Z] self.username, self.email, self.password
[2024-11-23T00:19:49.402Z] )
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.402Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.402Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.402Z] user.save(using=self._db)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.402Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.402Z] self.save_base(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.402Z] updated = self._save_table(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.402Z] results = self._do_insert(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.402Z] return manager._insert(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.402Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.402Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.402Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.402Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.402Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.402Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.402Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.402Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.402Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943020>
[2024-11-23T00:19:49.402Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.402Z] params = ('md5$FEORe7kHcxl6zRTKvrCrRT$0bbc137902b2a0735a6beff0cade46f6', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.402Z] if params is None:
[2024-11-23T00:19:49.402Z] return super().execute(query)
[2024-11-23T00:19:49.402Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.402Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.402Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.402Z] > return super().execute(query, params)
[2024-11-23T00:19:49.402Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.402Z] ________ CustomKeywordTokenAuthTests.test_post_form_failing_token_auth _________
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c27c710>
[2024-11-23T00:19:49.402Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.402Z] params = ('md5$LTrj17e0ezHeCXmuw5PfQJ$4841c719238ce889cec676eab83834c5', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.402Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c27c710>})
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.402Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.402Z] # ever set during testing).
[2024-11-23T00:19:49.402Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.402Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.402Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.402Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.402Z] if params is None:
[2024-11-23T00:19:49.402Z] # params default might be backend specific.
[2024-11-23T00:19:49.402Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.402Z] else:
[2024-11-23T00:19:49.402Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.402Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a20f0>
[2024-11-23T00:19:49.402Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.402Z] params = ('md5$LTrj17e0ezHeCXmuw5PfQJ$4841c719238ce889cec676eab83834c5', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.402Z] if params is None:
[2024-11-23T00:19:49.402Z] return super().execute(query)
[2024-11-23T00:19:49.402Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.402Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.402Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.402Z] > return super().execute(query, params)
[2024-11-23T00:19:49.402Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_form_failing_token_auth>
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def setUp(self):
[2024-11-23T00:19:49.402Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.402Z] self.username = 'john'
[2024-11-23T00:19:49.402Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.402Z] self.password = 'password'
[2024-11-23T00:19:49.402Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.402Z] self.username, self.email, self.password
[2024-11-23T00:19:49.402Z] )
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.402Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.402Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.402Z] user.save(using=self._db)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.402Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.402Z] self.save_base(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.402Z] updated = self._save_table(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.402Z] results = self._do_insert(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.402Z] return manager._insert(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.402Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.402Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.402Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.402Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.402Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.402Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.402Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.402Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.402Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521f1a20f0>
[2024-11-23T00:19:49.402Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.402Z] params = ('md5$LTrj17e0ezHeCXmuw5PfQJ$4841c719238ce889cec676eab83834c5', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.402Z] if params is None:
[2024-11-23T00:19:49.402Z] return super().execute(query)
[2024-11-23T00:19:49.402Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.402Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.402Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.402Z] > return super().execute(query, params)
[2024-11-23T00:19:49.402Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.402Z] ________ CustomKeywordTokenAuthTests.test_post_form_passing_token_auth _________
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2837d0>
[2024-11-23T00:19:49.402Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.402Z] params = ('md5$gsCAINbOlPLUoUraBBs1If$504406cd45a9217a10b083b89ff78589', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.402Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2837d0>})
[2024-11-23T00:19:49.402Z]
[2024-11-23T00:19:49.402Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.402Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.402Z] # ever set during testing).
[2024-11-23T00:19:49.402Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.402Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.402Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.402Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.402Z] if params is None:
[2024-11-23T00:19:49.402Z] # params default might be backend specific.
[2024-11-23T00:19:49.403Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.403Z] else:
[2024-11-23T00:19:49.403Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.403Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.403Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.403Z] params = ('md5$gsCAINbOlPLUoUraBBs1If$504406cd45a9217a10b083b89ff78589', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.403Z] if params is None:
[2024-11-23T00:19:49.403Z] return super().execute(query)
[2024-11-23T00:19:49.403Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.403Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.403Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.403Z] > return super().execute(query, params)
[2024-11-23T00:19:49.403Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_form_passing_token_auth>
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def setUp(self):
[2024-11-23T00:19:49.403Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.403Z] self.username = 'john'
[2024-11-23T00:19:49.403Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.403Z] self.password = 'password'
[2024-11-23T00:19:49.403Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.403Z] self.username, self.email, self.password
[2024-11-23T00:19:49.403Z] )
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.403Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.403Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.403Z] user.save(using=self._db)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.403Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.403Z] self.save_base(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.403Z] updated = self._save_table(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.403Z] results = self._do_insert(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.403Z] return manager._insert(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.403Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.403Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.403Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.403Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.403Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.403Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.403Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.403Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.403Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.403Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.403Z] params = ('md5$gsCAINbOlPLUoUraBBs1If$504406cd45a9217a10b083b89ff78589', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.403Z] if params is None:
[2024-11-23T00:19:49.403Z] return super().execute(query)
[2024-11-23T00:19:49.403Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.403Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.403Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.403Z] > return super().execute(query, params)
[2024-11-23T00:19:49.403Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.403Z] ________ CustomKeywordTokenAuthTests.test_post_json_failing_token_auth _________
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c280e30>
[2024-11-23T00:19:49.403Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.403Z] params = ('md5$s8MUjSYYBpUmkGwErxdUtm$1277083b6db8b87a3875710190df0fc0', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.403Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c280e30>})
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.403Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.403Z] # ever set during testing).
[2024-11-23T00:19:49.403Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.403Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.403Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.403Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.403Z] if params is None:
[2024-11-23T00:19:49.403Z] # params default might be backend specific.
[2024-11-23T00:19:49.403Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.403Z] else:
[2024-11-23T00:19:49.403Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.403Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9432f0>
[2024-11-23T00:19:49.403Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.403Z] params = ('md5$s8MUjSYYBpUmkGwErxdUtm$1277083b6db8b87a3875710190df0fc0', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.403Z] if params is None:
[2024-11-23T00:19:49.403Z] return super().execute(query)
[2024-11-23T00:19:49.403Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.403Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.403Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.403Z] > return super().execute(query, params)
[2024-11-23T00:19:49.403Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_json_failing_token_auth>
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def setUp(self):
[2024-11-23T00:19:49.403Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.403Z] self.username = 'john'
[2024-11-23T00:19:49.403Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.403Z] self.password = 'password'
[2024-11-23T00:19:49.403Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.403Z] self.username, self.email, self.password
[2024-11-23T00:19:49.403Z] )
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.403Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.403Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.403Z] user.save(using=self._db)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.403Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.403Z] self.save_base(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.403Z] updated = self._save_table(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.403Z] results = self._do_insert(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.403Z] return manager._insert(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.403Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.403Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.403Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.403Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.403Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.403Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.403Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.403Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.403Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9432f0>
[2024-11-23T00:19:49.403Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.403Z] params = ('md5$s8MUjSYYBpUmkGwErxdUtm$1277083b6db8b87a3875710190df0fc0', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.403Z] if params is None:
[2024-11-23T00:19:49.403Z] return super().execute(query)
[2024-11-23T00:19:49.403Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.403Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.403Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.403Z] > return super().execute(query, params)
[2024-11-23T00:19:49.403Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.403Z] ________ CustomKeywordTokenAuthTests.test_post_json_makes_one_db_query _________
[2024-11-23T00:19:49.403Z]
[2024-11-23T00:19:49.403Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2bc890>
[2024-11-23T00:19:49.403Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.403Z] params = ('md5$Q2mRrMApdvV0yniwapBHFy$4b613c8de61683152e2763b88116667a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.404Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2bc890>})
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.404Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.404Z] # ever set during testing).
[2024-11-23T00:19:49.404Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.404Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.404Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.404Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.404Z] if params is None:
[2024-11-23T00:19:49.404Z] # params default might be backend specific.
[2024-11-23T00:19:49.404Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.404Z] else:
[2024-11-23T00:19:49.404Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.404Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f1d0>
[2024-11-23T00:19:49.404Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.404Z] params = ('md5$Q2mRrMApdvV0yniwapBHFy$4b613c8de61683152e2763b88116667a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.404Z] if params is None:
[2024-11-23T00:19:49.404Z] return super().execute(query)
[2024-11-23T00:19:49.404Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.404Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.404Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.404Z] > return super().execute(query, params)
[2024-11-23T00:19:49.404Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_json_makes_one_db_query>
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def setUp(self):
[2024-11-23T00:19:49.404Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.404Z] self.username = 'john'
[2024-11-23T00:19:49.404Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.404Z] self.password = 'password'
[2024-11-23T00:19:49.404Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.404Z] self.username, self.email, self.password
[2024-11-23T00:19:49.404Z] )
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.404Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.404Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.404Z] user.save(using=self._db)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.404Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.404Z] self.save_base(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.404Z] updated = self._save_table(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.404Z] results = self._do_insert(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.404Z] return manager._insert(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.404Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.404Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.404Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.404Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.404Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.404Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.404Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.404Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.404Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f1d0>
[2024-11-23T00:19:49.404Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.404Z] params = ('md5$Q2mRrMApdvV0yniwapBHFy$4b613c8de61683152e2763b88116667a', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.404Z] if params is None:
[2024-11-23T00:19:49.404Z] return super().execute(query)
[2024-11-23T00:19:49.404Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.404Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.404Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.404Z] > return super().execute(query, params)
[2024-11-23T00:19:49.404Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.404Z] ________ CustomKeywordTokenAuthTests.test_post_json_passing_token_auth _________
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c33bd10>
[2024-11-23T00:19:49.404Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.404Z] params = ('md5$hbYraKpcrr4EOsYLuA70Om$21bac8f0d97c2bd5728126ddef4a8a9e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.404Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c33bd10>})
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.404Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.404Z] # ever set during testing).
[2024-11-23T00:19:49.404Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.404Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.404Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.404Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.404Z] if params is None:
[2024-11-23T00:19:49.404Z] # params default might be backend specific.
[2024-11-23T00:19:49.404Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.404Z] else:
[2024-11-23T00:19:49.404Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.404Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9432f0>
[2024-11-23T00:19:49.404Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.404Z] params = ('md5$hbYraKpcrr4EOsYLuA70Om$21bac8f0d97c2bd5728126ddef4a8a9e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.404Z] if params is None:
[2024-11-23T00:19:49.404Z] return super().execute(query)
[2024-11-23T00:19:49.404Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.404Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.404Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.404Z] > return super().execute(query, params)
[2024-11-23T00:19:49.404Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <tests.authentication.test_authentication.CustomKeywordTokenAuthTests testMethod=test_post_json_passing_token_auth>
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def setUp(self):
[2024-11-23T00:19:49.404Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.404Z] self.username = 'john'
[2024-11-23T00:19:49.404Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.404Z] self.password = 'password'
[2024-11-23T00:19:49.404Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.404Z] self.username, self.email, self.password
[2024-11-23T00:19:49.404Z] )
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] tests/authentication/test_authentication.py:298:
[2024-11-23T00:19:49.404Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.404Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.404Z] user.save(using=self._db)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.404Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.404Z] self.save_base(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.404Z] updated = self._save_table(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.404Z] results = self._do_insert(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.404Z] return manager._insert(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.404Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.404Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.404Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.404Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.404Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.404Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.404Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.404Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.404Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.404Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9432f0>
[2024-11-23T00:19:49.404Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.404Z] params = ('md5$hbYraKpcrr4EOsYLuA70Om$21bac8f0d97c2bd5728126ddef4a8a9e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.404Z]
[2024-11-23T00:19:49.404Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.404Z] if params is None:
[2024-11-23T00:19:49.404Z] return super().execute(query)
[2024-11-23T00:19:49.404Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.404Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.404Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.405Z] > return super().execute(query, params)
[2024-11-23T00:19:49.405Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.405Z] _ BasicAuthenticationUnitTests.test_basic_authentication_raises_error_if_user_not_found _
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c33a930>
[2024-11-23T00:19:49.405Z] sql = 'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."u...staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."username" = %s LIMIT 21'
[2024-11-23T00:19:49.405Z] params = ('invalid id',)
[2024-11-23T00:19:49.405Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c33a930>})
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.405Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.405Z] # ever set during testing).
[2024-11-23T00:19:49.405Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.405Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.405Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.405Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.405Z] if params is None:
[2024-11-23T00:19:49.405Z] # params default might be backend specific.
[2024-11-23T00:19:49.405Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.405Z] else:
[2024-11-23T00:19:49.405Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.405Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5ccb0>
[2024-11-23T00:19:49.405Z] query = 'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."u..._staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."username" = ? LIMIT 21'
[2024-11-23T00:19:49.405Z] params = ('invalid id',)
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.405Z] if params is None:
[2024-11-23T00:19:49.405Z] return super().execute(query)
[2024-11-23T00:19:49.405Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.405Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.405Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.405Z] > return super().execute(query, params)
[2024-11-23T00:19:49.405Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <tests.authentication.test_authentication.BasicAuthenticationUnitTests testMethod=test_basic_authentication_raises_error_if_user_not_found>
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def test_basic_authentication_raises_error_if_user_not_found(self):
[2024-11-23T00:19:49.405Z] auth = BasicAuthentication()
[2024-11-23T00:19:49.405Z] with pytest.raises(exceptions.AuthenticationFailed):
[2024-11-23T00:19:49.405Z] > auth.authenticate_credentials('invalid id', 'invalid password')
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] tests/authentication/test_authentication.py:567:
[2024-11-23T00:19:49.405Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.405Z] rest_framework/authentication.py:98: in authenticate_credentials
[2024-11-23T00:19:49.405Z] user = authenticate(request=request, **credentials)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/views/decorators/debug.py:75: in sensitive_variables_wrapper
[2024-11-23T00:19:49.405Z] return func(*func_args, **func_kwargs)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/contrib/auth/__init__.py:79: in authenticate
[2024-11-23T00:19:49.405Z] user = backend.authenticate(request, **credentials)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/contrib/auth/backends.py:42: in authenticate
[2024-11-23T00:19:49.405Z] user = UserModel._default_manager.get_by_natural_key(username)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:37: in get_by_natural_key
[2024-11-23T00:19:49.405Z] return self.get(**{self.model.USERNAME_FIELD: username})
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.405Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:645: in get
[2024-11-23T00:19:49.405Z] num = len(clone)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:382: in __len__
[2024-11-23T00:19:49.405Z] self._fetch_all()
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1928: in _fetch_all
[2024-11-23T00:19:49.405Z] self._result_cache = list(self._iterable_class(self))
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:91: in __iter__
[2024-11-23T00:19:49.405Z] results = compiler.execute_sql(
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T00:19:49.405Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.405Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.405Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.405Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.405Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.405Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.405Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5ccb0>
[2024-11-23T00:19:49.405Z] query = 'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."u..._staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."username" = ? LIMIT 21'
[2024-11-23T00:19:49.405Z] params = ('invalid id',)
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.405Z] if params is None:
[2024-11-23T00:19:49.405Z] return super().execute(query)
[2024-11-23T00:19:49.405Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.405Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.405Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.405Z] > return super().execute(query, params)
[2024-11-23T00:19:49.405Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.405Z] ___________ RemoteUserAuthenticationUnitTests.test_remote_user_works ___________
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c2735f0>
[2024-11-23T00:19:49.405Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.405Z] params = ('md5$XQICSIQRsoV3dHjGuOJA7W$5a612934460db2b13fc6c9f6b4fef698', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.405Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c2735f0>})
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.405Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.405Z] # ever set during testing).
[2024-11-23T00:19:49.405Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.405Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.405Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.405Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.405Z] if params is None:
[2024-11-23T00:19:49.405Z] # params default might be backend specific.
[2024-11-23T00:19:49.405Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.405Z] else:
[2024-11-23T00:19:49.405Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.405Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9429f0>
[2024-11-23T00:19:49.405Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.405Z] params = ('md5$XQICSIQRsoV3dHjGuOJA7W$5a612934460db2b13fc6c9f6b4fef698', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.405Z] if params is None:
[2024-11-23T00:19:49.405Z] return super().execute(query)
[2024-11-23T00:19:49.405Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.405Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.405Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.405Z] > return super().execute(query, params)
[2024-11-23T00:19:49.405Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] self = <tests.authentication.test_authentication.RemoteUserAuthenticationUnitTests testMethod=test_remote_user_works>
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] def setUp(self):
[2024-11-23T00:19:49.405Z] self.username = 'john'
[2024-11-23T00:19:49.405Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.405Z] self.password = 'password'
[2024-11-23T00:19:49.405Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.405Z] self.username, self.email, self.password
[2024-11-23T00:19:49.405Z] )
[2024-11-23T00:19:49.405Z]
[2024-11-23T00:19:49.405Z] tests/authentication/test_authentication.py:592:
[2024-11-23T00:19:49.405Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.405Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.405Z] user.save(using=self._db)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.405Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.405Z] self.save_base(
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.405Z] updated = self._save_table(
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.405Z] results = self._do_insert(
[2024-11-23T00:19:49.405Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.405Z] return manager._insert(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.406Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.406Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.406Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.406Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.406Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.406Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.406Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.406Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.406Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c9429f0>
[2024-11-23T00:19:49.406Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.406Z] params = ('md5$XQICSIQRsoV3dHjGuOJA7W$5a612934460db2b13fc6c9f6b4fef698', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.406Z] if params is None:
[2024-11-23T00:19:49.406Z] return super().execute(query)
[2024-11-23T00:19:49.406Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.406Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.406Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.406Z] > return super().execute(query, params)
[2024-11-23T00:19:49.406Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.406Z] _ AnonymousUserTests.test_get_raises_typeerror_when_anonymous_user_in_queryset_filter _
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_raises_typeerror_when_anonymous_user_in_queryset_filter>
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def test_get_raises_typeerror_when_anonymous_user_in_queryset_filter(self):
[2024-11-23T00:19:49.406Z] > with self.assertRaises(TypeError):
[2024-11-23T00:19:49.406Z] E AssertionError: TypeError not raised
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] tests/browsable_api/test_browsable_api.py:21: AssertionError
[2024-11-23T00:19:49.406Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.406Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.406Z] Traceback (most recent call last):
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.406Z] response = get_response(request)
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.406Z] response = self.process_request(request)
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.406Z] host = request.get_host()
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.406Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.406Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.406Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T00:19:49.406Z] ____ AnonymousUserTests.test_get_returns_http_forbidden_when_anonymous_user ____
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <tests.browsable_api.test_browsable_api.AnonymousUserTests testMethod=test_get_returns_http_forbidden_when_anonymous_user>
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def test_get_returns_http_forbidden_when_anonymous_user(self):
[2024-11-23T00:19:49.406Z] old_permissions = BasicModelWithUsersViewSet.permission_classes
[2024-11-23T00:19:49.406Z] BasicModelWithUsersViewSet.permission_classes = [IsAuthenticated, OrganizationPermissions]
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] response = self.client.get('/basicviewset')
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] BasicModelWithUsersViewSet.permission_classes = old_permissions
[2024-11-23T00:19:49.406Z] > self.assertEqual(response.status_code, 403)
[2024-11-23T00:19:49.406Z] E AssertionError: 400 != 403
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] tests/browsable_api/test_browsable_api.py:31: AssertionError
[2024-11-23T00:19:49.406Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.406Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.406Z] Traceback (most recent call last):
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.406Z] response = get_response(request)
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.406Z] response = self.process_request(request)
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.406Z] host = request.get_host()
[2024-11-23T00:19:49.406Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.406Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.406Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.406Z] WARNING django.request:log.py:248 Bad Request: /basicviewset
[2024-11-23T00:19:49.406Z] ___________ DropdownWithAuthTests.test_dropdown_contains_logout_form ___________
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c7f1550>
[2024-11-23T00:19:49.406Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.406Z] params = ('md5$QItdIeupQlfjEIdf7WLKZA$6dae90995ef3c213bb00638118d57d32', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.406Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c7f1550>})
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.406Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.406Z] # ever set during testing).
[2024-11-23T00:19:49.406Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.406Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.406Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.406Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.406Z] if params is None:
[2024-11-23T00:19:49.406Z] # params default might be backend specific.
[2024-11-23T00:19:49.406Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.406Z] else:
[2024-11-23T00:19:49.406Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.406Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09a9f0>
[2024-11-23T00:19:49.406Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.406Z] params = ('md5$QItdIeupQlfjEIdf7WLKZA$6dae90995ef3c213bb00638118d57d32', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.406Z] if params is None:
[2024-11-23T00:19:49.406Z] return super().execute(query)
[2024-11-23T00:19:49.406Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.406Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.406Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.406Z] > return super().execute(query, params)
[2024-11-23T00:19:49.406Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_dropdown_contains_logout_form>
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def setUp(self):
[2024-11-23T00:19:49.406Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.406Z] self.username = 'john'
[2024-11-23T00:19:49.406Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.406Z] self.password = 'password'
[2024-11-23T00:19:49.406Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.406Z] self.username,
[2024-11-23T00:19:49.406Z] self.email,
[2024-11-23T00:19:49.406Z] self.password
[2024-11-23T00:19:49.406Z] )
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T00:19:49.406Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.406Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.406Z] user.save(using=self._db)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.406Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.406Z] self.save_base(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.406Z] updated = self._save_table(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.406Z] results = self._do_insert(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.406Z] return manager._insert(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.406Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.406Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.406Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.406Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.406Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.406Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.406Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.406Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.406Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09a9f0>
[2024-11-23T00:19:49.406Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.406Z] params = ('md5$QItdIeupQlfjEIdf7WLKZA$6dae90995ef3c213bb00638118d57d32', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.406Z] if params is None:
[2024-11-23T00:19:49.406Z] return super().execute(query)
[2024-11-23T00:19:49.406Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.406Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.406Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.406Z] > return super().execute(query, params)
[2024-11-23T00:19:49.406Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.406Z] ____________ DropdownWithAuthTests.test_login_shown_when_logged_out ____________
[2024-11-23T00:19:49.406Z]
[2024-11-23T00:19:49.406Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c79fef0>
[2024-11-23T00:19:49.407Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.407Z] params = ('md5$Sy11SABYndudOWHoA3FZsf$8aa03c2d18de772fbf816adf3882fcd3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.407Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c79fef0>})
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.407Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.407Z] # ever set during testing).
[2024-11-23T00:19:49.407Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.407Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.407Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.407Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.407Z] if params is None:
[2024-11-23T00:19:49.407Z] # params default might be backend specific.
[2024-11-23T00:19:49.407Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.407Z] else:
[2024-11-23T00:19:49.407Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.407Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09a960>
[2024-11-23T00:19:49.407Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.407Z] params = ('md5$Sy11SABYndudOWHoA3FZsf$8aa03c2d18de772fbf816adf3882fcd3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.407Z] if params is None:
[2024-11-23T00:19:49.407Z] return super().execute(query)
[2024-11-23T00:19:49.407Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.407Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.407Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.407Z] > return super().execute(query, params)
[2024-11-23T00:19:49.407Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_login_shown_when_logged_out>
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def setUp(self):
[2024-11-23T00:19:49.407Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.407Z] self.username = 'john'
[2024-11-23T00:19:49.407Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.407Z] self.password = 'password'
[2024-11-23T00:19:49.407Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.407Z] self.username,
[2024-11-23T00:19:49.407Z] self.email,
[2024-11-23T00:19:49.407Z] self.password
[2024-11-23T00:19:49.407Z] )
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T00:19:49.407Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.407Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.407Z] user.save(using=self._db)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.407Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.407Z] self.save_base(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.407Z] updated = self._save_table(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.407Z] results = self._do_insert(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.407Z] return manager._insert(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.407Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.407Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.407Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.407Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.407Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.407Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.407Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.407Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.407Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09a960>
[2024-11-23T00:19:49.407Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.407Z] params = ('md5$Sy11SABYndudOWHoA3FZsf$8aa03c2d18de772fbf816adf3882fcd3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.407Z] if params is None:
[2024-11-23T00:19:49.407Z] return super().execute(query)
[2024-11-23T00:19:49.407Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.407Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.407Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.407Z] > return super().execute(query, params)
[2024-11-23T00:19:49.407Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.407Z] ____________ DropdownWithAuthTests.test_logout_shown_when_logged_in ____________
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c9db770>
[2024-11-23T00:19:49.407Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.407Z] params = ('md5$6kQl89CYO3IAuKzbmYHRrL$489316d1f11c3e9d515ec8f39331aff7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.407Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c9db770>})
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.407Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.407Z] # ever set during testing).
[2024-11-23T00:19:49.407Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.407Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.407Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.407Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.407Z] if params is None:
[2024-11-23T00:19:49.407Z] # params default might be backend specific.
[2024-11-23T00:19:49.407Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.407Z] else:
[2024-11-23T00:19:49.407Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.407Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bd10>
[2024-11-23T00:19:49.407Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.407Z] params = ('md5$6kQl89CYO3IAuKzbmYHRrL$489316d1f11c3e9d515ec8f39331aff7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.407Z] if params is None:
[2024-11-23T00:19:49.407Z] return super().execute(query)
[2024-11-23T00:19:49.407Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.407Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.407Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.407Z] > return super().execute(query, params)
[2024-11-23T00:19:49.407Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_logout_shown_when_logged_in>
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] def setUp(self):
[2024-11-23T00:19:49.407Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.407Z] self.username = 'john'
[2024-11-23T00:19:49.407Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.407Z] self.password = 'password'
[2024-11-23T00:19:49.407Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.407Z] self.username,
[2024-11-23T00:19:49.407Z] self.email,
[2024-11-23T00:19:49.407Z] self.password
[2024-11-23T00:19:49.407Z] )
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T00:19:49.407Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.407Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.407Z] user.save(using=self._db)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.407Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.407Z] self.save_base(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.407Z] updated = self._save_table(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.407Z] results = self._do_insert(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.407Z] return manager._insert(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.407Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.407Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.407Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.407Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.407Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.407Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.407Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.407Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.407Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.407Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.407Z]
[2024-11-23T00:19:49.407Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bd10>
[2024-11-23T00:19:49.407Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.408Z] params = ('md5$6kQl89CYO3IAuKzbmYHRrL$489316d1f11c3e9d515ec8f39331aff7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.408Z] if params is None:
[2024-11-23T00:19:49.408Z] return super().execute(query)
[2024-11-23T00:19:49.408Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.408Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.408Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.408Z] > return super().execute(query, params)
[2024-11-23T00:19:49.408Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.408Z] _____________ DropdownWithAuthTests.test_name_shown_when_logged_in _____________
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c9d88f0>
[2024-11-23T00:19:49.408Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.408Z] params = ('md5$64S9Mc3DQcwmrPZRCpAUd8$b527bfbe890e39ebb02fcb995a61d52e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.408Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c9d88f0>})
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.408Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.408Z] # ever set during testing).
[2024-11-23T00:19:49.408Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.408Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.408Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.408Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.408Z] if params is None:
[2024-11-23T00:19:49.408Z] # params default might be backend specific.
[2024-11-23T00:19:49.408Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.408Z] else:
[2024-11-23T00:19:49.408Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.408Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c099ac0>
[2024-11-23T00:19:49.408Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.408Z] params = ('md5$64S9Mc3DQcwmrPZRCpAUd8$b527bfbe890e39ebb02fcb995a61d52e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.408Z] if params is None:
[2024-11-23T00:19:49.408Z] return super().execute(query)
[2024-11-23T00:19:49.408Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.408Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.408Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.408Z] > return super().execute(query, params)
[2024-11-23T00:19:49.408Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <tests.browsable_api.test_browsable_api.DropdownWithAuthTests testMethod=test_name_shown_when_logged_in>
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def setUp(self):
[2024-11-23T00:19:49.408Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.408Z] self.username = 'john'
[2024-11-23T00:19:49.408Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.408Z] self.password = 'password'
[2024-11-23T00:19:49.408Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.408Z] self.username,
[2024-11-23T00:19:49.408Z] self.email,
[2024-11-23T00:19:49.408Z] self.password
[2024-11-23T00:19:49.408Z] )
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] tests/browsable_api/test_browsable_api.py:42:
[2024-11-23T00:19:49.408Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.408Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.408Z] user.save(using=self._db)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.408Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.408Z] self.save_base(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.408Z] updated = self._save_table(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.408Z] results = self._do_insert(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.408Z] return manager._insert(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.408Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.408Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.408Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.408Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.408Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.408Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.408Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.408Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.408Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c099ac0>
[2024-11-23T00:19:49.408Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.408Z] params = ('md5$64S9Mc3DQcwmrPZRCpAUd8$b527bfbe890e39ebb02fcb995a61d52e', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.408Z] if params is None:
[2024-11-23T00:19:49.408Z] return super().execute(query)
[2024-11-23T00:19:49.408Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.408Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.408Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.408Z] > return super().execute(query, params)
[2024-11-23T00:19:49.408Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.408Z] ______ NoDropdownWithoutAuthTests.test_dropdown_not_shown_when_logged_in _______
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c9da150>
[2024-11-23T00:19:49.408Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.408Z] params = ('md5$8pMhr325NYgDH1phqXUGGQ$6a9a542d786e945b94cc5c7736d7a245', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.408Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c9da150>})
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.408Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.408Z] # ever set during testing).
[2024-11-23T00:19:49.408Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.408Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.408Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.408Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.408Z] if params is None:
[2024-11-23T00:19:49.408Z] # params default might be backend specific.
[2024-11-23T00:19:49.408Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.408Z] else:
[2024-11-23T00:19:49.408Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.408Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09a720>
[2024-11-23T00:19:49.408Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.408Z] params = ('md5$8pMhr325NYgDH1phqXUGGQ$6a9a542d786e945b94cc5c7736d7a245', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.408Z] if params is None:
[2024-11-23T00:19:49.408Z] return super().execute(query)
[2024-11-23T00:19:49.408Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.408Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.408Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.408Z] > return super().execute(query, params)
[2024-11-23T00:19:49.408Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] self = <tests.browsable_api.test_browsable_api.NoDropdownWithoutAuthTests testMethod=test_dropdown_not_shown_when_logged_in>
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] def setUp(self):
[2024-11-23T00:19:49.408Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.408Z] self.username = 'john'
[2024-11-23T00:19:49.408Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.408Z] self.password = 'password'
[2024-11-23T00:19:49.408Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.408Z] self.username,
[2024-11-23T00:19:49.408Z] self.email,
[2024-11-23T00:19:49.408Z] self.password
[2024-11-23T00:19:49.408Z] )
[2024-11-23T00:19:49.408Z]
[2024-11-23T00:19:49.408Z] tests/browsable_api/test_browsable_api.py:83:
[2024-11-23T00:19:49.408Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.408Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.408Z] user.save(using=self._db)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.408Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.408Z] self.save_base(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.408Z] updated = self._save_table(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.408Z] results = self._do_insert(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.408Z] return manager._insert(
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.408Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.408Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.408Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.408Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.408Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.409Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.409Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.409Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.409Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.409Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09a720>
[2024-11-23T00:19:49.409Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.409Z] params = ('md5$8pMhr325NYgDH1phqXUGGQ$6a9a542d786e945b94cc5c7736d7a245', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.409Z] if params is None:
[2024-11-23T00:19:49.409Z] return super().execute(query)
[2024-11-23T00:19:49.409Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.409Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.409Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.409Z] > return super().execute(query, params)
[2024-11-23T00:19:49.409Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.409Z] ______ NoDropdownWithoutAuthTests.test_dropdown_not_shown_when_logged_out ______
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c9f8950>
[2024-11-23T00:19:49.409Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.409Z] params = ('md5$BMEwXT0jdfFpen1rsAKFVI$ea21688b25c6d2b272b4669973c3204c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.409Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c9f8950>})
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.409Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.409Z] # ever set during testing).
[2024-11-23T00:19:49.409Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.409Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.409Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.409Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.409Z] if params is None:
[2024-11-23T00:19:49.409Z] # params default might be backend specific.
[2024-11-23T00:19:49.409Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.409Z] else:
[2024-11-23T00:19:49.409Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.409Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c099ac0>
[2024-11-23T00:19:49.409Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.409Z] params = ('md5$BMEwXT0jdfFpen1rsAKFVI$ea21688b25c6d2b272b4669973c3204c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.409Z] if params is None:
[2024-11-23T00:19:49.409Z] return super().execute(query)
[2024-11-23T00:19:49.409Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.409Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.409Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.409Z] > return super().execute(query, params)
[2024-11-23T00:19:49.409Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <tests.browsable_api.test_browsable_api.NoDropdownWithoutAuthTests testMethod=test_dropdown_not_shown_when_logged_out>
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def setUp(self):
[2024-11-23T00:19:49.409Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.409Z] self.username = 'john'
[2024-11-23T00:19:49.409Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.409Z] self.password = 'password'
[2024-11-23T00:19:49.409Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.409Z] self.username,
[2024-11-23T00:19:49.409Z] self.email,
[2024-11-23T00:19:49.409Z] self.password
[2024-11-23T00:19:49.409Z] )
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] tests/browsable_api/test_browsable_api.py:83:
[2024-11-23T00:19:49.409Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.409Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.409Z] user.save(using=self._db)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.409Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.409Z] self.save_base(
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.409Z] updated = self._save_table(
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.409Z] results = self._do_insert(
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.409Z] return manager._insert(
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.409Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.409Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.409Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.409Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.409Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.409Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.409Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.409Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.409Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c099ac0>
[2024-11-23T00:19:49.409Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.409Z] params = ('md5$BMEwXT0jdfFpen1rsAKFVI$ea21688b25c6d2b272b4669973c3204c', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.409Z] if params is None:
[2024-11-23T00:19:49.409Z] return super().execute(query)
[2024-11-23T00:19:49.409Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.409Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.409Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.409Z] > return super().execute(query, params)
[2024-11-23T00:19:49.409Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.409Z] __________ NoDropdownWithoutAuthTests.test_name_shown_when_logged_in ___________
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c9f93d0>
[2024-11-23T00:19:49.409Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.409Z] params = ('md5$JPVE1OXwesbOgNHCfXeOOi$ac325ee3c20af8aa6cc12c2ed62317b9', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.409Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c9f93d0>})
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.409Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.409Z] # ever set during testing).
[2024-11-23T00:19:49.409Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.409Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.409Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.409Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.409Z] if params is None:
[2024-11-23T00:19:49.409Z] # params default might be backend specific.
[2024-11-23T00:19:49.409Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.409Z] else:
[2024-11-23T00:19:49.409Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.409Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c845400>
[2024-11-23T00:19:49.409Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.409Z] params = ('md5$JPVE1OXwesbOgNHCfXeOOi$ac325ee3c20af8aa6cc12c2ed62317b9', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.409Z] if params is None:
[2024-11-23T00:19:49.409Z] return super().execute(query)
[2024-11-23T00:19:49.409Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.409Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.409Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.409Z] > return super().execute(query, params)
[2024-11-23T00:19:49.409Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] self = <tests.browsable_api.test_browsable_api.NoDropdownWithoutAuthTests testMethod=test_name_shown_when_logged_in>
[2024-11-23T00:19:49.409Z]
[2024-11-23T00:19:49.409Z] def setUp(self):
[2024-11-23T00:19:49.409Z] self.client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.409Z] self.username = 'john'
[2024-11-23T00:19:49.409Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.409Z] self.password = 'password'
[2024-11-23T00:19:49.410Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.410Z] self.username,
[2024-11-23T00:19:49.410Z] self.email,
[2024-11-23T00:19:49.410Z] self.password
[2024-11-23T00:19:49.410Z] )
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] tests/browsable_api/test_browsable_api.py:83:
[2024-11-23T00:19:49.410Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.410Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.410Z] user.save(using=self._db)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.410Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.410Z] self.save_base(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.410Z] updated = self._save_table(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.410Z] results = self._do_insert(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.410Z] return manager._insert(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.410Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.410Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.410Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.410Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.410Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.410Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.410Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.410Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.410Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c845400>
[2024-11-23T00:19:49.410Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.410Z] params = ('md5$JPVE1OXwesbOgNHCfXeOOi$ac325ee3c20af8aa6cc12c2ed62317b9', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.410Z] if params is None:
[2024-11-23T00:19:49.410Z] return super().execute(query)
[2024-11-23T00:19:49.410Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.410Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.410Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.410Z] > return super().execute(query, params)
[2024-11-23T00:19:49.410Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.410Z] _______________________ DropdownWithAuthTests.test_login _______________________
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <tests.browsable_api.test_browsable_nested_api.DropdownWithAuthTests testMethod=test_login>
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] @override_settings(ROOT_URLCONF='tests.browsable_api.test_browsable_nested_api')
[2024-11-23T00:19:49.410Z] def test_login(self):
[2024-11-23T00:19:49.410Z] response = self.client.get('/api/')
[2024-11-23T00:19:49.410Z] > assert 200 == response.status_code
[2024-11-23T00:19:49.410Z] E assert 200 == 400
[2024-11-23T00:19:49.410Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] tests/browsable_api/test_browsable_nested_api.py:36: AssertionError
[2024-11-23T00:19:49.410Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.410Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.410Z] Traceback (most recent call last):
[2024-11-23T00:19:49.410Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.410Z] response = get_response(request)
[2024-11-23T00:19:49.410Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.410Z] response = self.process_request(request)
[2024-11-23T00:19:49.410Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.410Z] host = request.get_host()
[2024-11-23T00:19:49.410Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.410Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.410Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.410Z] WARNING django.request:log.py:248 Bad Request: /api/
[2024-11-23T00:19:49.410Z] __________________ TestManyPostView.test_post_many_post_view ___________________
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c7bd310>
[2024-11-23T00:19:49.410Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.410Z] params = ('foo',)
[2024-11-23T00:19:49.410Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c7bd310>})
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.410Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.410Z] # ever set during testing).
[2024-11-23T00:19:49.410Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.410Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.410Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.410Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.410Z] if params is None:
[2024-11-23T00:19:49.410Z] # params default might be backend specific.
[2024-11-23T00:19:49.410Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.410Z] else:
[2024-11-23T00:19:49.410Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.410Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8459a0>
[2024-11-23T00:19:49.410Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.410Z] params = ('foo',)
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.410Z] if params is None:
[2024-11-23T00:19:49.410Z] return super().execute(query)
[2024-11-23T00:19:49.410Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.410Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.410Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.410Z] > return super().execute(query, params)
[2024-11-23T00:19:49.410Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <tests.browsable_api.test_form_rendering.TestManyPostView testMethod=test_post_many_post_view>
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] def setUp(self):
[2024-11-23T00:19:49.410Z] """
[2024-11-23T00:19:49.410Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.410Z] """
[2024-11-23T00:19:49.410Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.410Z] for item in items:
[2024-11-23T00:19:49.410Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] tests/browsable_api/test_form_rendering.py:64:
[2024-11-23T00:19:49.410Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.410Z] self.save_base(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.410Z] updated = self._save_table(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.410Z] results = self._do_insert(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.410Z] return manager._insert(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.410Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.410Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.410Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.410Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.410Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.410Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.410Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.410Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.410Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8459a0>
[2024-11-23T00:19:49.410Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.410Z] params = ('foo',)
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.410Z] if params is None:
[2024-11-23T00:19:49.410Z] return super().execute(query)
[2024-11-23T00:19:49.410Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.410Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.410Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.410Z] > return super().execute(query, params)
[2024-11-23T00:19:49.410Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.410Z] _____________________ TestGenericRelations.test_generic_fk _____________________
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c7bd1f0>
[2024-11-23T00:19:49.410Z] sql = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (%s) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T00:19:49.410Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T00:19:49.410Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c7bd1f0>})
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.410Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.410Z] # ever set during testing).
[2024-11-23T00:19:49.410Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.410Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.410Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.410Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.410Z] if params is None:
[2024-11-23T00:19:49.410Z] # params default might be backend specific.
[2024-11-23T00:19:49.410Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.410Z] else:
[2024-11-23T00:19:49.410Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.410Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.410Z]
[2024-11-23T00:19:49.410Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8474a0>
[2024-11-23T00:19:49.410Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T00:19:49.411Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] return super().execute(query)
[2024-11-23T00:19:49.411Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.411Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.411Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.411Z] > return super().execute(query, params)
[2024-11-23T00:19:49.411Z] E sqlite3.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <tests.generic_relations.test_generic_relations.TestGenericRelations testMethod=test_generic_fk>
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def setUp(self):
[2024-11-23T00:19:49.411Z] > self.bookmark = Bookmark.objects.create(url='https://www.djangoproject.com/')
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] tests/generic_relations/test_generic_relations.py:10:
[2024-11-23T00:19:49.411Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.411Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.411Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.411Z] self.save_base(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.411Z] updated = self._save_table(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.411Z] results = self._do_insert(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.411Z] return manager._insert(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.411Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.411Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.411Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.411Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.411Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.411Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.411Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.411Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.411Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8474a0>
[2024-11-23T00:19:49.411Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T00:19:49.411Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] return super().execute(query)
[2024-11-23T00:19:49.411Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.411Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.411Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.411Z] > return super().execute(query, params)
[2024-11-23T00:19:49.411Z] E django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.411Z] __________________ TestGenericRelations.test_generic_relation __________________
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c36e3f0>
[2024-11-23T00:19:49.411Z] sql = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (%s) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T00:19:49.411Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T00:19:49.411Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c36e3f0>})
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.411Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.411Z] # ever set during testing).
[2024-11-23T00:19:49.411Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.411Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.411Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.411Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] # params default might be backend specific.
[2024-11-23T00:19:49.411Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.411Z] else:
[2024-11-23T00:19:49.411Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.411Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bbf0>
[2024-11-23T00:19:49.411Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T00:19:49.411Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] return super().execute(query)
[2024-11-23T00:19:49.411Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.411Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.411Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.411Z] > return super().execute(query, params)
[2024-11-23T00:19:49.411Z] E sqlite3.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <tests.generic_relations.test_generic_relations.TestGenericRelations testMethod=test_generic_relation>
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def setUp(self):
[2024-11-23T00:19:49.411Z] > self.bookmark = Bookmark.objects.create(url='https://www.djangoproject.com/')
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] tests/generic_relations/test_generic_relations.py:10:
[2024-11-23T00:19:49.411Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.411Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.411Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.411Z] self.save_base(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.411Z] updated = self._save_table(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.411Z] results = self._do_insert(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.411Z] return manager._insert(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.411Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.411Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.411Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.411Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.411Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.411Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.411Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.411Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.411Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bbf0>
[2024-11-23T00:19:49.411Z] query = 'INSERT INTO "generic_relations_bookmark" ("url") VALUES (?) RETURNING "generic_relations_bookmark"."id"'
[2024-11-23T00:19:49.411Z] params = ('https://www.djangoproject.com/',)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] return super().execute(query)
[2024-11-23T00:19:49.411Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.411Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.411Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.411Z] > return super().execute(query, params)
[2024-11-23T00:19:49.411Z] E django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.411Z] ___________ DBTransactionTests.test_no_exception_commit_transaction ____________
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <django.db.backends.utils.CursorDebugWrapper object at 0x7e521d0a3e00>
[2024-11-23T00:19:49.411Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.411Z] params = ('',)
[2024-11-23T00:19:49.411Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7e521d0a3e00>})
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.411Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.411Z] # ever set during testing).
[2024-11-23T00:19:49.411Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.411Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.411Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.411Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] # params default might be backend specific.
[2024-11-23T00:19:49.411Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.411Z] else:
[2024-11-23T00:19:49.411Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.411Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c844e60>
[2024-11-23T00:19:49.411Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.411Z] params = ('',)
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.411Z] if params is None:
[2024-11-23T00:19:49.411Z] return super().execute(query)
[2024-11-23T00:19:49.411Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.411Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.411Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.411Z] > return super().execute(query, params)
[2024-11-23T00:19:49.411Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.411Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.411Z]
[2024-11-23T00:19:49.412Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <tests.test_atomic_requests.DBTransactionTests testMethod=test_no_exception_commit_transaction>
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] def test_no_exception_commit_transaction(self):
[2024-11-23T00:19:49.412Z] request = factory.post('/')
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] with self.assertNumQueries(1):
[2024-11-23T00:19:49.412Z] > response = self.view(request)
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] tests/test_atomic_requests.py:67:
[2024-11-23T00:19:49.412Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.412Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.412Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.412Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.412Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.412Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.412Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.412Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.412Z] raise exc
[2024-11-23T00:19:49.412Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.412Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.412Z] tests/test_atomic_requests.py:20: in post
[2024-11-23T00:19:49.412Z] BasicModel.objects.create()
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.412Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.412Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.412Z] self.save_base(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.412Z] updated = self._save_table(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.412Z] results = self._do_insert(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.412Z] return manager._insert(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.412Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.412Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.412Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:122: in execute
[2024-11-23T00:19:49.412Z] return super().execute(sql, params)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.412Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.412Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.412Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.412Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.412Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.412Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c844e60>
[2024-11-23T00:19:49.412Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.412Z] params = ('',)
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.412Z] if params is None:
[2024-11-23T00:19:49.412Z] return super().execute(query)
[2024-11-23T00:19:49.412Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.412Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.412Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.412Z] > return super().execute(query, params)
[2024-11-23T00:19:49.412Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.412Z] _ DBTransactionErrorTests.test_generic_exception_delegate_transaction_management _
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <tests.test_atomic_requests.DBTransactionErrorTests testMethod=test_generic_exception_delegate_transaction_management>
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] def test_generic_exception_delegate_transaction_management(self):
[2024-11-23T00:19:49.412Z] """
[2024-11-23T00:19:49.412Z] Transaction is eventually managed by outer-most transaction atomic
[2024-11-23T00:19:49.412Z] block. DRF do not try to interfere here.
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] We let django deal with the transaction when it will catch the Exception.
[2024-11-23T00:19:49.412Z] """
[2024-11-23T00:19:49.412Z] request = factory.post('/')
[2024-11-23T00:19:49.412Z] with self.assertNumQueries(3):
[2024-11-23T00:19:49.412Z] # 1 - begin savepoint
[2024-11-23T00:19:49.412Z] # 2 - insert
[2024-11-23T00:19:49.412Z] # 3 - release savepoint
[2024-11-23T00:19:49.412Z] with transaction.atomic():
[2024-11-23T00:19:49.412Z] self.assertRaises(Exception, self.view, request)
[2024-11-23T00:19:49.412Z] > assert not transaction.get_rollback()
[2024-11-23T00:19:49.412Z] E assert not True
[2024-11-23T00:19:49.412Z] E + where True = <function get_rollback at 0x7e521e5749a0>()
[2024-11-23T00:19:49.412Z] E + where <function get_rollback at 0x7e521e5749a0> = transaction.get_rollback
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] tests/test_atomic_requests.py:99: AssertionError
[2024-11-23T00:19:49.412Z] ____ DBTransactionAPIExceptionTests.test_api_exception_rollback_transaction ____
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <django.db.backends.utils.CursorDebugWrapper object at 0x7e521c398490>
[2024-11-23T00:19:49.412Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.412Z] params = ('',)
[2024-11-23T00:19:49.412Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7e521c398490>})
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.412Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.412Z] # ever set during testing).
[2024-11-23T00:19:49.412Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.412Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.412Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.412Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.412Z] if params is None:
[2024-11-23T00:19:49.412Z] # params default might be backend specific.
[2024-11-23T00:19:49.412Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.412Z] else:
[2024-11-23T00:19:49.412Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.412Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09ab10>
[2024-11-23T00:19:49.412Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.412Z] params = ('',)
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.412Z] if params is None:
[2024-11-23T00:19:49.412Z] return super().execute(query)
[2024-11-23T00:19:49.412Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.412Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.412Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.412Z] > return super().execute(query, params)
[2024-11-23T00:19:49.412Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <tests.test_atomic_requests.DBTransactionAPIExceptionTests testMethod=test_api_exception_rollback_transaction>
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] def test_api_exception_rollback_transaction(self):
[2024-11-23T00:19:49.412Z] """
[2024-11-23T00:19:49.412Z] Transaction is rollbacked by our transaction atomic block.
[2024-11-23T00:19:49.412Z] """
[2024-11-23T00:19:49.412Z] request = factory.post('/')
[2024-11-23T00:19:49.412Z] num_queries = 4 if connection.features.can_release_savepoints else 3
[2024-11-23T00:19:49.412Z] with self.assertNumQueries(num_queries):
[2024-11-23T00:19:49.412Z] # 1 - begin savepoint
[2024-11-23T00:19:49.412Z] # 2 - insert
[2024-11-23T00:19:49.412Z] # 3 - rollback savepoint
[2024-11-23T00:19:49.412Z] # 4 - release savepoint
[2024-11-23T00:19:49.412Z] with transaction.atomic():
[2024-11-23T00:19:49.412Z] > response = self.view(request)
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] tests/test_atomic_requests.py:127:
[2024-11-23T00:19:49.412Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.412Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.412Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.412Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.412Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.412Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.412Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.412Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.412Z] raise exc
[2024-11-23T00:19:49.412Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.412Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.412Z] tests/test_atomic_requests.py:32: in post
[2024-11-23T00:19:49.412Z] BasicModel.objects.create()
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.412Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.412Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.412Z] self.save_base(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.412Z] updated = self._save_table(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.412Z] results = self._do_insert(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.412Z] return manager._insert(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.412Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.412Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.412Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:122: in execute
[2024-11-23T00:19:49.412Z] return super().execute(sql, params)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.412Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.412Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.412Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.412Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.412Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.412Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.412Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.412Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09ab10>
[2024-11-23T00:19:49.412Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.412Z] params = ('',)
[2024-11-23T00:19:49.412Z]
[2024-11-23T00:19:49.413Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.413Z] if params is None:
[2024-11-23T00:19:49.413Z] return super().execute(query)
[2024-11-23T00:19:49.413Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.413Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.413Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.413Z] > return super().execute(query, params)
[2024-11-23T00:19:49.413Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.413Z] _ MultiDBTransactionAPIExceptionTests.test_api_exception_rollback_transaction __
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] self = <django.db.backends.utils.CursorDebugWrapper object at 0x7e521c82a7b0>
[2024-11-23T00:19:49.413Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.413Z] params = ('',)
[2024-11-23T00:19:49.413Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7e521c82a7b0>})
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.413Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.413Z] # ever set during testing).
[2024-11-23T00:19:49.413Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.413Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.413Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.413Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.413Z] if params is None:
[2024-11-23T00:19:49.413Z] # params default might be backend specific.
[2024-11-23T00:19:49.413Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.413Z] else:
[2024-11-23T00:19:49.413Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.413Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.413Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.413Z] params = ('',)
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.413Z] if params is None:
[2024-11-23T00:19:49.413Z] return super().execute(query)
[2024-11-23T00:19:49.413Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.413Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.413Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.413Z] > return super().execute(query, params)
[2024-11-23T00:19:49.413Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] self = <tests.test_atomic_requests.MultiDBTransactionAPIExceptionTests testMethod=test_api_exception_rollback_transaction>
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] def test_api_exception_rollback_transaction(self):
[2024-11-23T00:19:49.413Z] """
[2024-11-23T00:19:49.413Z] Transaction is rollbacked by our transaction atomic block.
[2024-11-23T00:19:49.413Z] """
[2024-11-23T00:19:49.413Z] request = factory.post('/')
[2024-11-23T00:19:49.413Z] num_queries = 4 if connection.features.can_release_savepoints else 3
[2024-11-23T00:19:49.413Z] with self.assertNumQueries(num_queries):
[2024-11-23T00:19:49.413Z] # 1 - begin savepoint
[2024-11-23T00:19:49.413Z] # 2 - insert
[2024-11-23T00:19:49.413Z] # 3 - rollback savepoint
[2024-11-23T00:19:49.413Z] # 4 - release savepoint
[2024-11-23T00:19:49.413Z] with transaction.atomic(), transaction.atomic(using='secondary'):
[2024-11-23T00:19:49.413Z] > response = self.view(request)
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] tests/test_atomic_requests.py:161:
[2024-11-23T00:19:49.413Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.413Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.413Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.413Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.413Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.413Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.413Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.413Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.413Z] raise exc
[2024-11-23T00:19:49.413Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.413Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.413Z] tests/test_atomic_requests.py:32: in post
[2024-11-23T00:19:49.413Z] BasicModel.objects.create()
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.413Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.413Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.413Z] self.save_base(
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.413Z] updated = self._save_table(
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.413Z] results = self._do_insert(
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.413Z] return manager._insert(
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.413Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.413Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.413Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:122: in execute
[2024-11-23T00:19:49.413Z] return super().execute(sql, params)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.413Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.413Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.413Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.413Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.413Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.413Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.413Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.413Z] params = ('',)
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.413Z] if params is None:
[2024-11-23T00:19:49.413Z] return super().execute(query)
[2024-11-23T00:19:49.413Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.413Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.413Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.413Z] > return super().execute(query, params)
[2024-11-23T00:19:49.413Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.413Z] _ NonAtomicDBTransactionAPIExceptionTests.test_api_exception_rollback_transaction_non_atomic_view _
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] self = <tests.test_atomic_requests.NonAtomicDBTransactionAPIExceptionTests testMethod=test_api_exception_rollback_transaction_non_atomic_view>
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] def test_api_exception_rollback_transaction_non_atomic_view(self):
[2024-11-23T00:19:49.413Z] response = self.client.get('/')
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] # without checking connection.in_atomic_block view raises 500
[2024-11-23T00:19:49.413Z] # due attempt to rollback without transaction
[2024-11-23T00:19:49.413Z] > assert response.status_code == status.HTTP_404_NOT_FOUND
[2024-11-23T00:19:49.413Z] E assert 400 == 404
[2024-11-23T00:19:49.413Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.413Z] E + and 404 = status.HTTP_404_NOT_FOUND
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] tests/test_atomic_requests.py:185: AssertionError
[2024-11-23T00:19:49.413Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.413Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.413Z] Traceback (most recent call last):
[2024-11-23T00:19:49.413Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.413Z] response = get_response(request)
[2024-11-23T00:19:49.413Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.413Z] response = self.process_request(request)
[2024-11-23T00:19:49.413Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.413Z] host = request.get_host()
[2024-11-23T00:19:49.413Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.413Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.413Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.413Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.413Z] _ AuthTokenTests.test_authtoken_can_be_imported_when_not_included_in_installed_apps _
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3da210>
[2024-11-23T00:19:49.413Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.413Z] params = ('!6iccuZcjRMsXRUD3MQu9TWKWuGkbhVsNzKrICnRq', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.413Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3da210>})
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.413Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.413Z] # ever set during testing).
[2024-11-23T00:19:49.413Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.413Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.413Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.413Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.413Z] if params is None:
[2024-11-23T00:19:49.413Z] # params default might be backend specific.
[2024-11-23T00:19:49.413Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.413Z] else:
[2024-11-23T00:19:49.413Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.413Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.413Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.413Z]
[2024-11-23T00:19:49.414Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803380>
[2024-11-23T00:19:49.414Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.414Z] params = ('!6iccuZcjRMsXRUD3MQu9TWKWuGkbhVsNzKrICnRq', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.414Z] if params is None:
[2024-11-23T00:19:49.414Z] return super().execute(query)
[2024-11-23T00:19:49.414Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.414Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.414Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.414Z] > return super().execute(query, params)
[2024-11-23T00:19:49.414Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_authtoken_can_be_imported_when_not_included_in_installed_apps>
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def setUp(self):
[2024-11-23T00:19:49.414Z] self.site = site
[2024-11-23T00:19:49.414Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] tests/test_authtoken.py:22:
[2024-11-23T00:19:49.414Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.414Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.414Z] user.save(using=self._db)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.414Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.414Z] self.save_base(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.414Z] updated = self._save_table(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.414Z] results = self._do_insert(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.414Z] return manager._insert(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.414Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.414Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.414Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.414Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.414Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.414Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.414Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.414Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.414Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803380>
[2024-11-23T00:19:49.414Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.414Z] params = ('!6iccuZcjRMsXRUD3MQu9TWKWuGkbhVsNzKrICnRq', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.414Z] if params is None:
[2024-11-23T00:19:49.414Z] return super().execute(query)
[2024-11-23T00:19:49.414Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.414Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.414Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.414Z] > return super().execute(query, params)
[2024-11-23T00:19:49.414Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.414Z] _______________ AuthTokenTests.test_model_admin_displayed_fields _______________
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3db350>
[2024-11-23T00:19:49.414Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.414Z] params = ('!C86kpunwwmmYRX03DSpBUvq5gLs6keXxDVuU7Wnv', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.414Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3db350>})
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.414Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.414Z] # ever set during testing).
[2024-11-23T00:19:49.414Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.414Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.414Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.414Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.414Z] if params is None:
[2024-11-23T00:19:49.414Z] # params default might be backend specific.
[2024-11-23T00:19:49.414Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.414Z] else:
[2024-11-23T00:19:49.414Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.414Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943020>
[2024-11-23T00:19:49.414Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.414Z] params = ('!C86kpunwwmmYRX03DSpBUvq5gLs6keXxDVuU7Wnv', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.414Z] if params is None:
[2024-11-23T00:19:49.414Z] return super().execute(query)
[2024-11-23T00:19:49.414Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.414Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.414Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.414Z] > return super().execute(query, params)
[2024-11-23T00:19:49.414Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_model_admin_displayed_fields>
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def setUp(self):
[2024-11-23T00:19:49.414Z] self.site = site
[2024-11-23T00:19:49.414Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] tests/test_authtoken.py:22:
[2024-11-23T00:19:49.414Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.414Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.414Z] user.save(using=self._db)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.414Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.414Z] self.save_base(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.414Z] updated = self._save_table(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.414Z] results = self._do_insert(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.414Z] return manager._insert(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.414Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.414Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.414Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.414Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.414Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.414Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.414Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.414Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.414Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943020>
[2024-11-23T00:19:49.414Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.414Z] params = ('!C86kpunwwmmYRX03DSpBUvq5gLs6keXxDVuU7Wnv', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.414Z] if params is None:
[2024-11-23T00:19:49.414Z] return super().execute(query)
[2024-11-23T00:19:49.414Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.414Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.414Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.414Z] > return super().execute(query, params)
[2024-11-23T00:19:49.414Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.414Z] _______________ AuthTokenTests.test_token_string_representation ________________
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3f88f0>
[2024-11-23T00:19:49.414Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.414Z] params = ('!7OKON8zPyeeLnYwOhbDsmBLAJO5MnrkPJApX9yx6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.414Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3f88f0>})
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.414Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.414Z] # ever set during testing).
[2024-11-23T00:19:49.414Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.414Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.414Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.414Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.414Z] if params is None:
[2024-11-23T00:19:49.414Z] # params default might be backend specific.
[2024-11-23T00:19:49.414Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.414Z] else:
[2024-11-23T00:19:49.414Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.414Z]
[2024-11-23T00:19:49.414Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.415Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.415Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.415Z] params = ('!7OKON8zPyeeLnYwOhbDsmBLAJO5MnrkPJApX9yx6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.415Z] if params is None:
[2024-11-23T00:19:49.415Z] return super().execute(query)
[2024-11-23T00:19:49.415Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.415Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.415Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.415Z] > return super().execute(query, params)
[2024-11-23T00:19:49.415Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_token_string_representation>
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def setUp(self):
[2024-11-23T00:19:49.415Z] self.site = site
[2024-11-23T00:19:49.415Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] tests/test_authtoken.py:22:
[2024-11-23T00:19:49.415Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.415Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.415Z] user.save(using=self._db)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.415Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.415Z] self.save_base(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.415Z] updated = self._save_table(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.415Z] results = self._do_insert(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.415Z] return manager._insert(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.415Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.415Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.415Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.415Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.415Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.415Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.415Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.415Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.415Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521ce5f890>
[2024-11-23T00:19:49.415Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.415Z] params = ('!7OKON8zPyeeLnYwOhbDsmBLAJO5MnrkPJApX9yx6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.415Z] if params is None:
[2024-11-23T00:19:49.415Z] return super().execute(query)
[2024-11-23T00:19:49.415Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.415Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.415Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.415Z] > return super().execute(query, params)
[2024-11-23T00:19:49.415Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.415Z] _____ AuthTokenTests.test_validate_raise_error_if_no_credentials_provided ______
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3f9cd0>
[2024-11-23T00:19:49.415Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.415Z] params = ('!osVNR0a96mx3DNUzMoA0Alp2WMPyfQgDXaLa1DMR', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.415Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3f9cd0>})
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.415Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.415Z] # ever set during testing).
[2024-11-23T00:19:49.415Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.415Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.415Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.415Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.415Z] if params is None:
[2024-11-23T00:19:49.415Z] # params default might be backend specific.
[2024-11-23T00:19:49.415Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.415Z] else:
[2024-11-23T00:19:49.415Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.415Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803800>
[2024-11-23T00:19:49.415Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.415Z] params = ('!osVNR0a96mx3DNUzMoA0Alp2WMPyfQgDXaLa1DMR', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.415Z] if params is None:
[2024-11-23T00:19:49.415Z] return super().execute(query)
[2024-11-23T00:19:49.415Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.415Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.415Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.415Z] > return super().execute(query, params)
[2024-11-23T00:19:49.415Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_validate_raise_error_if_no_credentials_provided>
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def setUp(self):
[2024-11-23T00:19:49.415Z] self.site = site
[2024-11-23T00:19:49.415Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] tests/test_authtoken.py:22:
[2024-11-23T00:19:49.415Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.415Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.415Z] user.save(using=self._db)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.415Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.415Z] self.save_base(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.415Z] updated = self._save_table(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.415Z] results = self._do_insert(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.415Z] return manager._insert(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.415Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.415Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.415Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.415Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.415Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.415Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.415Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.415Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.415Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803800>
[2024-11-23T00:19:49.415Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.415Z] params = ('!osVNR0a96mx3DNUzMoA0Alp2WMPyfQgDXaLa1DMR', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.415Z] if params is None:
[2024-11-23T00:19:49.415Z] return super().execute(query)
[2024-11-23T00:19:49.415Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.415Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.415Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.415Z] > return super().execute(query, params)
[2024-11-23T00:19:49.415Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.415Z] __________________ AuthTokenTests.test_whitespace_in_password __________________
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3f9d30>
[2024-11-23T00:19:49.415Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.415Z] params = ('!72PhyzdUFYlo451r1IRslgy4xezUnAo8w11bwe1G', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.415Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3f9d30>})
[2024-11-23T00:19:49.415Z]
[2024-11-23T00:19:49.415Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.415Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.415Z] # ever set during testing).
[2024-11-23T00:19:49.415Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.415Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.415Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.415Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.415Z] if params is None:
[2024-11-23T00:19:49.415Z] # params default might be backend specific.
[2024-11-23T00:19:49.415Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.416Z] else:
[2024-11-23T00:19:49.416Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.416Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943020>
[2024-11-23T00:19:49.416Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.416Z] params = ('!72PhyzdUFYlo451r1IRslgy4xezUnAo8w11bwe1G', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.416Z] if params is None:
[2024-11-23T00:19:49.416Z] return super().execute(query)
[2024-11-23T00:19:49.416Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.416Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.416Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.416Z] > return super().execute(query, params)
[2024-11-23T00:19:49.416Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <tests.test_authtoken.AuthTokenTests testMethod=test_whitespace_in_password>
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def setUp(self):
[2024-11-23T00:19:49.416Z] self.site = site
[2024-11-23T00:19:49.416Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] tests/test_authtoken.py:22:
[2024-11-23T00:19:49.416Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.416Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.416Z] user.save(using=self._db)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.416Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.416Z] self.save_base(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.416Z] updated = self._save_table(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.416Z] results = self._do_insert(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.416Z] return manager._insert(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.416Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.416Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.416Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.416Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.416Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.416Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.416Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.416Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.416Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c943020>
[2024-11-23T00:19:49.416Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.416Z] params = ('!72PhyzdUFYlo451r1IRslgy4xezUnAo8w11bwe1G', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.416Z] if params is None:
[2024-11-23T00:19:49.416Z] return super().execute(query)
[2024-11-23T00:19:49.416Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.416Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.416Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.416Z] > return super().execute(query, params)
[2024-11-23T00:19:49.416Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.416Z] _____________ AuthTokenCommandTests.test_command_create_user_token _____________
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c42f1d0>
[2024-11-23T00:19:49.416Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.416Z] params = ('!wPuFk3eP2f6RzxPpqPaoWlJgBAEfUljOGwnm0Tr5', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.416Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c42f1d0>})
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.416Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.416Z] # ever set during testing).
[2024-11-23T00:19:49.416Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.416Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.416Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.416Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.416Z] if params is None:
[2024-11-23T00:19:49.416Z] # params default might be backend specific.
[2024-11-23T00:19:49.416Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.416Z] else:
[2024-11-23T00:19:49.416Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.416Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803890>
[2024-11-23T00:19:49.416Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.416Z] params = ('!wPuFk3eP2f6RzxPpqPaoWlJgBAEfUljOGwnm0Tr5', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.416Z] if params is None:
[2024-11-23T00:19:49.416Z] return super().execute(query)
[2024-11-23T00:19:49.416Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.416Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.416Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.416Z] > return super().execute(query, params)
[2024-11-23T00:19:49.416Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_create_user_token>
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def setUp(self):
[2024-11-23T00:19:49.416Z] self.site = site
[2024-11-23T00:19:49.416Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] tests/test_authtoken.py:56:
[2024-11-23T00:19:49.416Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.416Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.416Z] user.save(using=self._db)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.416Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.416Z] self.save_base(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.416Z] updated = self._save_table(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.416Z] results = self._do_insert(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.416Z] return manager._insert(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.416Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.416Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.416Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.416Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.416Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.416Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.416Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.416Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.416Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803890>
[2024-11-23T00:19:49.416Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.416Z] params = ('!wPuFk3eP2f6RzxPpqPaoWlJgBAEfUljOGwnm0Tr5', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.416Z] if params is None:
[2024-11-23T00:19:49.416Z] return super().execute(query)
[2024-11-23T00:19:49.416Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.416Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.416Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.416Z] > return super().execute(query, params)
[2024-11-23T00:19:49.416Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.416Z] ______ AuthTokenCommandTests.test_command_create_user_token_invalid_user _______
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c42cef0>
[2024-11-23T00:19:49.416Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.416Z] params = ('!LaT3Xzas3H8wsNxONUCHzhCL4r9YpnKoOatDLwqr', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.416Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c42cef0>})
[2024-11-23T00:19:49.416Z]
[2024-11-23T00:19:49.416Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.416Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.416Z] # ever set during testing).
[2024-11-23T00:19:49.416Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.416Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.416Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.416Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.416Z] if params is None:
[2024-11-23T00:19:49.417Z] # params default might be backend specific.
[2024-11-23T00:19:49.417Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.417Z] else:
[2024-11-23T00:19:49.417Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.417Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8032f0>
[2024-11-23T00:19:49.417Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.417Z] params = ('!LaT3Xzas3H8wsNxONUCHzhCL4r9YpnKoOatDLwqr', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.417Z] if params is None:
[2024-11-23T00:19:49.417Z] return super().execute(query)
[2024-11-23T00:19:49.417Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.417Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.417Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.417Z] > return super().execute(query, params)
[2024-11-23T00:19:49.417Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_create_user_token_invalid_user>
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def setUp(self):
[2024-11-23T00:19:49.417Z] self.site = site
[2024-11-23T00:19:49.417Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] tests/test_authtoken.py:56:
[2024-11-23T00:19:49.417Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.417Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.417Z] user.save(using=self._db)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.417Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.417Z] self.save_base(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.417Z] updated = self._save_table(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.417Z] results = self._do_insert(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.417Z] return manager._insert(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.417Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.417Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.417Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.417Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.417Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.417Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.417Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.417Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.417Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8032f0>
[2024-11-23T00:19:49.417Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.417Z] params = ('!LaT3Xzas3H8wsNxONUCHzhCL4r9YpnKoOatDLwqr', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.417Z] if params is None:
[2024-11-23T00:19:49.417Z] return super().execute(query)
[2024-11-23T00:19:49.417Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.417Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.417Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.417Z] > return super().execute(query, params)
[2024-11-23T00:19:49.417Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.417Z] __________ AuthTokenCommandTests.test_command_do_not_reset_user_token __________
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3fabd0>
[2024-11-23T00:19:49.417Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.417Z] params = ('!ZvRstVwK9hilkZLMW1mTgVCDLYOJyD92wLb0vjUX', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.417Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3fabd0>})
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.417Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.417Z] # ever set during testing).
[2024-11-23T00:19:49.417Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.417Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.417Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.417Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.417Z] if params is None:
[2024-11-23T00:19:49.417Z] # params default might be backend specific.
[2024-11-23T00:19:49.417Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.417Z] else:
[2024-11-23T00:19:49.417Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.417Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8023c0>
[2024-11-23T00:19:49.417Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.417Z] params = ('!ZvRstVwK9hilkZLMW1mTgVCDLYOJyD92wLb0vjUX', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.417Z] if params is None:
[2024-11-23T00:19:49.417Z] return super().execute(query)
[2024-11-23T00:19:49.417Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.417Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.417Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.417Z] > return super().execute(query, params)
[2024-11-23T00:19:49.417Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_do_not_reset_user_token>
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def setUp(self):
[2024-11-23T00:19:49.417Z] self.site = site
[2024-11-23T00:19:49.417Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] tests/test_authtoken.py:56:
[2024-11-23T00:19:49.417Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.417Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.417Z] user.save(using=self._db)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.417Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.417Z] self.save_base(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.417Z] updated = self._save_table(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.417Z] results = self._do_insert(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.417Z] return manager._insert(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.417Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.417Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.417Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.417Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.417Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.417Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.417Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.417Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.417Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.417Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8023c0>
[2024-11-23T00:19:49.417Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.417Z] params = ('!ZvRstVwK9hilkZLMW1mTgVCDLYOJyD92wLb0vjUX', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.417Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.417Z] if params is None:
[2024-11-23T00:19:49.417Z] return super().execute(query)
[2024-11-23T00:19:49.417Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.417Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.417Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.417Z] > return super().execute(query, params)
[2024-11-23T00:19:49.417Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.417Z]
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.418Z] __________________ AuthTokenCommandTests.test_command_output ___________________
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c42c6b0>
[2024-11-23T00:19:49.418Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.418Z] params = ('!nRNEpjAJYn0QHHSnCB8Oo63mWyArLpxJkaYCRplP', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.418Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c42c6b0>})
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.418Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.418Z] # ever set during testing).
[2024-11-23T00:19:49.418Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.418Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.418Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.418Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.418Z] if params is None:
[2024-11-23T00:19:49.418Z] # params default might be backend specific.
[2024-11-23T00:19:49.418Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.418Z] else:
[2024-11-23T00:19:49.418Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.418Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c802cc0>
[2024-11-23T00:19:49.418Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.418Z] params = ('!nRNEpjAJYn0QHHSnCB8Oo63mWyArLpxJkaYCRplP', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.418Z] if params is None:
[2024-11-23T00:19:49.418Z] return super().execute(query)
[2024-11-23T00:19:49.418Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.418Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.418Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.418Z] > return super().execute(query, params)
[2024-11-23T00:19:49.418Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_output>
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def setUp(self):
[2024-11-23T00:19:49.418Z] self.site = site
[2024-11-23T00:19:49.418Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] tests/test_authtoken.py:56:
[2024-11-23T00:19:49.418Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.418Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.418Z] user.save(using=self._db)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.418Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.418Z] self.save_base(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.418Z] updated = self._save_table(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.418Z] results = self._do_insert(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.418Z] return manager._insert(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.418Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.418Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.418Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.418Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.418Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.418Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.418Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.418Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.418Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c802cc0>
[2024-11-23T00:19:49.418Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.418Z] params = ('!nRNEpjAJYn0QHHSnCB8Oo63mWyArLpxJkaYCRplP', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.418Z] if params is None:
[2024-11-23T00:19:49.418Z] return super().execute(query)
[2024-11-23T00:19:49.418Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.418Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.418Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.418Z] > return super().execute(query, params)
[2024-11-23T00:19:49.418Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.418Z] ______ AuthTokenCommandTests.test_command_raising_error_for_invalid_user _______
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c42c9b0>
[2024-11-23T00:19:49.418Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.418Z] params = ('!cpIbhflvjwnHKBpdg0vr4p5vz7Wuk5cElf7OkCF6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.418Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c42c9b0>})
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.418Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.418Z] # ever set during testing).
[2024-11-23T00:19:49.418Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.418Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.418Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.418Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.418Z] if params is None:
[2024-11-23T00:19:49.418Z] # params default might be backend specific.
[2024-11-23T00:19:49.418Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.418Z] else:
[2024-11-23T00:19:49.418Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.418Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8039b0>
[2024-11-23T00:19:49.418Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.418Z] params = ('!cpIbhflvjwnHKBpdg0vr4p5vz7Wuk5cElf7OkCF6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.418Z] if params is None:
[2024-11-23T00:19:49.418Z] return super().execute(query)
[2024-11-23T00:19:49.418Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.418Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.418Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.418Z] > return super().execute(query, params)
[2024-11-23T00:19:49.418Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_raising_error_for_invalid_user>
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def setUp(self):
[2024-11-23T00:19:49.418Z] self.site = site
[2024-11-23T00:19:49.418Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] tests/test_authtoken.py:56:
[2024-11-23T00:19:49.418Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.418Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.418Z] user.save(using=self._db)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.418Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.418Z] self.save_base(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.418Z] updated = self._save_table(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.418Z] results = self._do_insert(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.418Z] return manager._insert(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.418Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.418Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.418Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.418Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.418Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.418Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.418Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.418Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.418Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.418Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8039b0>
[2024-11-23T00:19:49.418Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.418Z] params = ('!cpIbhflvjwnHKBpdg0vr4p5vz7Wuk5cElf7OkCF6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.418Z]
[2024-11-23T00:19:49.418Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.418Z] if params is None:
[2024-11-23T00:19:49.418Z] return super().execute(query)
[2024-11-23T00:19:49.418Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.418Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.418Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.418Z] > return super().execute(query, params)
[2024-11-23T00:19:49.419Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.419Z] _____________ AuthTokenCommandTests.test_command_reset_user_token ______________
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c3d10d0>
[2024-11-23T00:19:49.419Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.419Z] params = ('!o6qjcEB8Tg9sZiXiAbh6j9jneMem9GYpL4iWINC6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.419Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c3d10d0>})
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.419Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.419Z] # ever set during testing).
[2024-11-23T00:19:49.419Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.419Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.419Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.419Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.419Z] if params is None:
[2024-11-23T00:19:49.419Z] # params default might be backend specific.
[2024-11-23T00:19:49.419Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.419Z] else:
[2024-11-23T00:19:49.419Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.419Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803800>
[2024-11-23T00:19:49.419Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.419Z] params = ('!o6qjcEB8Tg9sZiXiAbh6j9jneMem9GYpL4iWINC6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.419Z] if params is None:
[2024-11-23T00:19:49.419Z] return super().execute(query)
[2024-11-23T00:19:49.419Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.419Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.419Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.419Z] > return super().execute(query, params)
[2024-11-23T00:19:49.419Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <tests.test_authtoken.AuthTokenCommandTests testMethod=test_command_reset_user_token>
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def setUp(self):
[2024-11-23T00:19:49.419Z] self.site = site
[2024-11-23T00:19:49.419Z] > self.user = User.objects.create_user(username='test_user')
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] tests/test_authtoken.py:56:
[2024-11-23T00:19:49.419Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.419Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.419Z] user.save(using=self._db)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.419Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.419Z] self.save_base(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.419Z] updated = self._save_table(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.419Z] results = self._do_insert(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.419Z] return manager._insert(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.419Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.419Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.419Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.419Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.419Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.419Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.419Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.419Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.419Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803800>
[2024-11-23T00:19:49.419Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.419Z] params = ('!o6qjcEB8Tg9sZiXiAbh6j9jneMem9GYpL4iWINC6', None, False, 'test_user', '', '', ...)
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.419Z] if params is None:
[2024-11-23T00:19:49.419Z] return super().execute(query)
[2024-11-23T00:19:49.419Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.419Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.419Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.419Z] > return super().execute(query, params)
[2024-11-23T00:19:49.419Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.419Z] _________ TestListFieldWithDjangoValidationErrors.test_invalid_inputs __________
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c52f470>
[2024-11-23T00:19:49.419Z] sql = 'SELECT "tests_uuidforeignkeytarget"."uuid", "tests_uuidforeignkeytarget"."name" FROM "tests_uuidforeignkeytarget" WHERE "tests_uuidforeignkeytarget"."uuid" = %s LIMIT 21'
[2024-11-23T00:19:49.419Z] params = ('d7364368d1b34455aaa356439b460ca2',)
[2024-11-23T00:19:49.419Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c52f470>})
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.419Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.419Z] # ever set during testing).
[2024-11-23T00:19:49.419Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.419Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.419Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.419Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.419Z] if params is None:
[2024-11-23T00:19:49.419Z] # params default might be backend specific.
[2024-11-23T00:19:49.419Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.419Z] else:
[2024-11-23T00:19:49.419Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.419Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c379760>
[2024-11-23T00:19:49.419Z] query = 'SELECT "tests_uuidforeignkeytarget"."uuid", "tests_uuidforeignkeytarget"."name" FROM "tests_uuidforeignkeytarget" WHERE "tests_uuidforeignkeytarget"."uuid" = ? LIMIT 21'
[2024-11-23T00:19:49.419Z] params = ('d7364368d1b34455aaa356439b460ca2',)
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.419Z] if params is None:
[2024-11-23T00:19:49.419Z] return super().execute(query)
[2024-11-23T00:19:49.419Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.419Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.419Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.419Z] > return super().execute(query, params)
[2024-11-23T00:19:49.419Z] E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <tests.test_fields.TestListFieldWithDjangoValidationErrors testMethod=test_invalid_inputs>
[2024-11-23T00:19:49.419Z] args = ()
[2024-11-23T00:19:49.419Z] input_value = ['not-a-valid-uuid', 'd7364368-d1b3-4455-aaa3-56439b460ca2', 'some-other-invalid-uuid']
[2024-11-23T00:19:49.419Z] expected_failure = {0: [ErrorDetail(string='“not-a-valid-uuid” is not a valid UUID.', code='invalid')], 1: [ErrorDetail(string='Invalid p....', code='does_not_exist')], 2: [ErrorDetail(string='“some-other-invalid-uuid” is not a valid UUID.', code='invalid')]}
[2024-11-23T00:19:49.419Z] exc_info = <ExceptionInfo for raises contextmanager>
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] def test_invalid_inputs(self, *args):
[2024-11-23T00:19:49.419Z] """
[2024-11-23T00:19:49.419Z] Ensure that invalid values raise the expected validation error.
[2024-11-23T00:19:49.419Z] """
[2024-11-23T00:19:49.419Z] for input_value, expected_failure in get_items(self.invalid_inputs):
[2024-11-23T00:19:49.419Z] with pytest.raises(serializers.ValidationError) as exc_info:
[2024-11-23T00:19:49.419Z] > self.field.run_validation(input_value)
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] tests/test_fields.py:682:
[2024-11-23T00:19:49.419Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.419Z] rest_framework/fields.py:538: in run_validation
[2024-11-23T00:19:49.419Z] value = self.to_internal_value(data)
[2024-11-23T00:19:49.419Z] rest_framework/fields.py:1648: in to_internal_value
[2024-11-23T00:19:49.419Z] return self.run_child_validation(data)
[2024-11-23T00:19:49.419Z] rest_framework/fields.py:1662: in run_child_validation
[2024-11-23T00:19:49.419Z] result.append(self.child.run_validation(item))
[2024-11-23T00:19:49.419Z] rest_framework/relations.py:155: in run_validation
[2024-11-23T00:19:49.419Z] return super().run_validation(data)
[2024-11-23T00:19:49.419Z] rest_framework/fields.py:538: in run_validation
[2024-11-23T00:19:49.419Z] value = self.to_internal_value(data)
[2024-11-23T00:19:49.419Z] rest_framework/relations.py:259: in to_internal_value
[2024-11-23T00:19:49.419Z] return queryset.get(pk=data)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:645: in get
[2024-11-23T00:19:49.419Z] num = len(clone)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:382: in __len__
[2024-11-23T00:19:49.419Z] self._fetch_all()
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1928: in _fetch_all
[2024-11-23T00:19:49.419Z] self._result_cache = list(self._iterable_class(self))
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:91: in __iter__
[2024-11-23T00:19:49.419Z] results = compiler.execute_sql(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T00:19:49.419Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.419Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.419Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.419Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.419Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.419Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.419Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.419Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.419Z]
[2024-11-23T00:19:49.419Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c379760>
[2024-11-23T00:19:49.419Z] query = 'SELECT "tests_uuidforeignkeytarget"."uuid", "tests_uuidforeignkeytarget"."name" FROM "tests_uuidforeignkeytarget" WHERE "tests_uuidforeignkeytarget"."uuid" = ? LIMIT 21'
[2024-11-23T00:19:49.420Z] params = ('d7364368d1b34455aaa356439b460ca2',)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] return super().execute(query)
[2024-11-23T00:19:49.420Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.420Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.420Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.420Z] > return super().execute(query, params)
[2024-11-23T00:19:49.420Z] E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.420Z] _____________________ SearchFilterM2MTests.test_m2m_search _____________________
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c116ed0>
[2024-11-23T00:19:49.420Z] sql = 'INSERT INTO "tests_attributemodel" ("label") VALUES (%s) RETURNING "tests_attributemodel"."id"'
[2024-11-23T00:19:49.420Z] params = ('w',)
[2024-11-23T00:19:49.420Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c116ed0>})
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.420Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.420Z] # ever set during testing).
[2024-11-23T00:19:49.420Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.420Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.420Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.420Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] # params default might be backend specific.
[2024-11-23T00:19:49.420Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.420Z] else:
[2024-11-23T00:19:49.420Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.420Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803800>
[2024-11-23T00:19:49.420Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T00:19:49.420Z] params = ('w',)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] return super().execute(query)
[2024-11-23T00:19:49.420Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.420Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.420Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.420Z] > return super().execute(query, params)
[2024-11-23T00:19:49.420Z] E sqlite3.OperationalError: no such table: tests_attributemodel
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <tests.test_filters.SearchFilterM2MTests testMethod=test_m2m_search>
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def setUp(self):
[2024-11-23T00:19:49.420Z] # Sequence of title/text/attributes is:
[2024-11-23T00:19:49.420Z] #
[2024-11-23T00:19:49.420Z] # z abc [1, 2, 3]
[2024-11-23T00:19:49.420Z] # zz bcd [1, 2, 3]
[2024-11-23T00:19:49.420Z] # zzz cde [1, 2, 3]
[2024-11-23T00:19:49.420Z] # ...
[2024-11-23T00:19:49.420Z] for idx in range(3):
[2024-11-23T00:19:49.420Z] label = 'w' * (idx + 1)
[2024-11-23T00:19:49.420Z] > AttributeModel.objects.create(label=label)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] tests/test_filters.py:379:
[2024-11-23T00:19:49.420Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.420Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.420Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.420Z] self.save_base(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.420Z] updated = self._save_table(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.420Z] results = self._do_insert(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.420Z] return manager._insert(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.420Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.420Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.420Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.420Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.420Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.420Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.420Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.420Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.420Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c803800>
[2024-11-23T00:19:49.420Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T00:19:49.420Z] params = ('w',)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] return super().execute(query)
[2024-11-23T00:19:49.420Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.420Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.420Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.420Z] > return super().execute(query, params)
[2024-11-23T00:19:49.420Z] E django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.420Z] _________________ SearchFilterM2MTests.test_must_call_distinct _________________
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0b7470>
[2024-11-23T00:19:49.420Z] sql = 'INSERT INTO "tests_attributemodel" ("label") VALUES (%s) RETURNING "tests_attributemodel"."id"'
[2024-11-23T00:19:49.420Z] params = ('w',)
[2024-11-23T00:19:49.420Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0b7470>})
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.420Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.420Z] # ever set during testing).
[2024-11-23T00:19:49.420Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.420Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.420Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.420Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] # params default might be backend specific.
[2024-11-23T00:19:49.420Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.420Z] else:
[2024-11-23T00:19:49.420Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.420Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5212e0>
[2024-11-23T00:19:49.420Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T00:19:49.420Z] params = ('w',)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] return super().execute(query)
[2024-11-23T00:19:49.420Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.420Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.420Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.420Z] > return super().execute(query, params)
[2024-11-23T00:19:49.420Z] E sqlite3.OperationalError: no such table: tests_attributemodel
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <tests.test_filters.SearchFilterM2MTests testMethod=test_must_call_distinct>
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def setUp(self):
[2024-11-23T00:19:49.420Z] # Sequence of title/text/attributes is:
[2024-11-23T00:19:49.420Z] #
[2024-11-23T00:19:49.420Z] # z abc [1, 2, 3]
[2024-11-23T00:19:49.420Z] # zz bcd [1, 2, 3]
[2024-11-23T00:19:49.420Z] # zzz cde [1, 2, 3]
[2024-11-23T00:19:49.420Z] # ...
[2024-11-23T00:19:49.420Z] for idx in range(3):
[2024-11-23T00:19:49.420Z] label = 'w' * (idx + 1)
[2024-11-23T00:19:49.420Z] > AttributeModel.objects.create(label=label)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] tests/test_filters.py:379:
[2024-11-23T00:19:49.420Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.420Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.420Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.420Z] self.save_base(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.420Z] updated = self._save_table(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.420Z] results = self._do_insert(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.420Z] return manager._insert(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.420Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.420Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.420Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.420Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.420Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.420Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.420Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.420Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.420Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.420Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5212e0>
[2024-11-23T00:19:49.420Z] query = 'INSERT INTO "tests_attributemodel" ("label") VALUES (?) RETURNING "tests_attributemodel"."id"'
[2024-11-23T00:19:49.420Z] params = ('w',)
[2024-11-23T00:19:49.420Z]
[2024-11-23T00:19:49.420Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.420Z] if params is None:
[2024-11-23T00:19:49.420Z] return super().execute(query)
[2024-11-23T00:19:49.420Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.420Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.421Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.421Z] > return super().execute(query, params)
[2024-11-23T00:19:49.421Z] E django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.421Z] __________________ OrderingFilterTests.test_default_ordering ___________________
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0b6ff0>
[2024-11-23T00:19:49.421Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.421Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.421Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0b6ff0>})
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.421Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.421Z] # ever set during testing).
[2024-11-23T00:19:49.421Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.421Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.421Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.421Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.421Z] if params is None:
[2024-11-23T00:19:49.421Z] # params default might be backend specific.
[2024-11-23T00:19:49.421Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.421Z] else:
[2024-11-23T00:19:49.421Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.421Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521e20>
[2024-11-23T00:19:49.421Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.421Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.421Z] if params is None:
[2024-11-23T00:19:49.421Z] return super().execute(query)
[2024-11-23T00:19:49.421Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.421Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.421Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.421Z] > return super().execute(query, params)
[2024-11-23T00:19:49.421Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_default_ordering>
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def setUp(self):
[2024-11-23T00:19:49.421Z] # Sequence of title/text is:
[2024-11-23T00:19:49.421Z] #
[2024-11-23T00:19:49.421Z] # zyx abc
[2024-11-23T00:19:49.421Z] # yxw bcd
[2024-11-23T00:19:49.421Z] # xwv cde
[2024-11-23T00:19:49.421Z] for idx in range(3):
[2024-11-23T00:19:49.421Z] title = (
[2024-11-23T00:19:49.421Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.421Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.421Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.421Z] )
[2024-11-23T00:19:49.421Z] text = (
[2024-11-23T00:19:49.421Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.421Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.421Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.421Z] )
[2024-11-23T00:19:49.421Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.421Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.421Z] self.save_base(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.421Z] updated = self._save_table(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.421Z] results = self._do_insert(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.421Z] return manager._insert(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.421Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.421Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.421Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.421Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.421Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.421Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.421Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.421Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.421Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521e20>
[2024-11-23T00:19:49.421Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.421Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.421Z] if params is None:
[2024-11-23T00:19:49.421Z] return super().execute(query)
[2024-11-23T00:19:49.421Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.421Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.421Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.421Z] > return super().execute(query, params)
[2024-11-23T00:19:49.421Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.421Z] ____________ OrderingFilterTests.test_default_ordering_using_string ____________
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c140e90>
[2024-11-23T00:19:49.421Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.421Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.421Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c140e90>})
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.421Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.421Z] # ever set during testing).
[2024-11-23T00:19:49.421Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.421Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.421Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.421Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.421Z] if params is None:
[2024-11-23T00:19:49.421Z] # params default might be backend specific.
[2024-11-23T00:19:49.421Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.421Z] else:
[2024-11-23T00:19:49.421Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.421Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521f40>
[2024-11-23T00:19:49.421Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.421Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.421Z] if params is None:
[2024-11-23T00:19:49.421Z] return super().execute(query)
[2024-11-23T00:19:49.421Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.421Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.421Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.421Z] > return super().execute(query, params)
[2024-11-23T00:19:49.421Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_default_ordering_using_string>
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] def setUp(self):
[2024-11-23T00:19:49.421Z] # Sequence of title/text is:
[2024-11-23T00:19:49.421Z] #
[2024-11-23T00:19:49.421Z] # zyx abc
[2024-11-23T00:19:49.421Z] # yxw bcd
[2024-11-23T00:19:49.421Z] # xwv cde
[2024-11-23T00:19:49.421Z] for idx in range(3):
[2024-11-23T00:19:49.421Z] title = (
[2024-11-23T00:19:49.421Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.421Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.421Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.421Z] )
[2024-11-23T00:19:49.421Z] text = (
[2024-11-23T00:19:49.421Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.421Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.421Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.421Z] )
[2024-11-23T00:19:49.421Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.421Z]
[2024-11-23T00:19:49.421Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.421Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.421Z] self.save_base(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.421Z] updated = self._save_table(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.421Z] results = self._do_insert(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.421Z] return manager._insert(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.421Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.421Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.421Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.421Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.421Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.421Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.422Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.422Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.422Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.422Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521f40>
[2024-11-23T00:19:49.422Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.422Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.422Z] if params is None:
[2024-11-23T00:19:49.422Z] return super().execute(query)
[2024-11-23T00:19:49.422Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.422Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.422Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.422Z] > return super().execute(query, params)
[2024-11-23T00:19:49.422Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.422Z] ________________ OrderingFilterTests.test_get_template_context _________________
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c109370>
[2024-11-23T00:19:49.422Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.422Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.422Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c109370>})
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.422Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.422Z] # ever set during testing).
[2024-11-23T00:19:49.422Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.422Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.422Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.422Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.422Z] if params is None:
[2024-11-23T00:19:49.422Z] # params default might be backend specific.
[2024-11-23T00:19:49.422Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.422Z] else:
[2024-11-23T00:19:49.422Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.422Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520cb0>
[2024-11-23T00:19:49.422Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.422Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.422Z] if params is None:
[2024-11-23T00:19:49.422Z] return super().execute(query)
[2024-11-23T00:19:49.422Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.422Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.422Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.422Z] > return super().execute(query, params)
[2024-11-23T00:19:49.422Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_get_template_context>
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def setUp(self):
[2024-11-23T00:19:49.422Z] # Sequence of title/text is:
[2024-11-23T00:19:49.422Z] #
[2024-11-23T00:19:49.422Z] # zyx abc
[2024-11-23T00:19:49.422Z] # yxw bcd
[2024-11-23T00:19:49.422Z] # xwv cde
[2024-11-23T00:19:49.422Z] for idx in range(3):
[2024-11-23T00:19:49.422Z] title = (
[2024-11-23T00:19:49.422Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.422Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.422Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.422Z] )
[2024-11-23T00:19:49.422Z] text = (
[2024-11-23T00:19:49.422Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.422Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.422Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.422Z] )
[2024-11-23T00:19:49.422Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.422Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.422Z] self.save_base(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.422Z] updated = self._save_table(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.422Z] results = self._do_insert(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.422Z] return manager._insert(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.422Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.422Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.422Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.422Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.422Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.422Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.422Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.422Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.422Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520cb0>
[2024-11-23T00:19:49.422Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.422Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.422Z] if params is None:
[2024-11-23T00:19:49.422Z] return super().execute(query)
[2024-11-23T00:19:49.422Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.422Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.422Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.422Z] > return super().execute(query, params)
[2024-11-23T00:19:49.422Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.422Z] _______________ OrderingFilterTests.test_incorrectfield_ordering _______________
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c10a330>
[2024-11-23T00:19:49.422Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.422Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.422Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c10a330>})
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.422Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.422Z] # ever set during testing).
[2024-11-23T00:19:49.422Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.422Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.422Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.422Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.422Z] if params is None:
[2024-11-23T00:19:49.422Z] # params default might be backend specific.
[2024-11-23T00:19:49.422Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.422Z] else:
[2024-11-23T00:19:49.422Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.422Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522060>
[2024-11-23T00:19:49.422Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.422Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.422Z] if params is None:
[2024-11-23T00:19:49.422Z] return super().execute(query)
[2024-11-23T00:19:49.422Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.422Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.422Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.422Z] > return super().execute(query, params)
[2024-11-23T00:19:49.422Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_incorrectfield_ordering>
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] def setUp(self):
[2024-11-23T00:19:49.422Z] # Sequence of title/text is:
[2024-11-23T00:19:49.422Z] #
[2024-11-23T00:19:49.422Z] # zyx abc
[2024-11-23T00:19:49.422Z] # yxw bcd
[2024-11-23T00:19:49.422Z] # xwv cde
[2024-11-23T00:19:49.422Z] for idx in range(3):
[2024-11-23T00:19:49.422Z] title = (
[2024-11-23T00:19:49.422Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.422Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.422Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.422Z] )
[2024-11-23T00:19:49.422Z] text = (
[2024-11-23T00:19:49.422Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.422Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.422Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.422Z] )
[2024-11-23T00:19:49.422Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.422Z]
[2024-11-23T00:19:49.422Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.422Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.422Z] self.save_base(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.422Z] updated = self._save_table(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.422Z] results = self._do_insert(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.422Z] return manager._insert(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.422Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.422Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.422Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.422Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.422Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.422Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.422Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.423Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.423Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.423Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522060>
[2024-11-23T00:19:49.423Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.423Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.423Z] if params is None:
[2024-11-23T00:19:49.423Z] return super().execute(query)
[2024-11-23T00:19:49.423Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.423Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.423Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.423Z] > return super().execute(query, params)
[2024-11-23T00:19:49.423Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.423Z] _________ OrderingFilterTests.test_incorrecturl_extrahyphens_ordering __________
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c142450>
[2024-11-23T00:19:49.423Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.423Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.423Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c142450>})
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.423Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.423Z] # ever set during testing).
[2024-11-23T00:19:49.423Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.423Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.423Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.423Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.423Z] if params is None:
[2024-11-23T00:19:49.423Z] # params default might be backend specific.
[2024-11-23T00:19:49.423Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.423Z] else:
[2024-11-23T00:19:49.423Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.423Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5212e0>
[2024-11-23T00:19:49.423Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.423Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.423Z] if params is None:
[2024-11-23T00:19:49.423Z] return super().execute(query)
[2024-11-23T00:19:49.423Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.423Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.423Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.423Z] > return super().execute(query, params)
[2024-11-23T00:19:49.423Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_incorrecturl_extrahyphens_ordering>
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def setUp(self):
[2024-11-23T00:19:49.423Z] # Sequence of title/text is:
[2024-11-23T00:19:49.423Z] #
[2024-11-23T00:19:49.423Z] # zyx abc
[2024-11-23T00:19:49.423Z] # yxw bcd
[2024-11-23T00:19:49.423Z] # xwv cde
[2024-11-23T00:19:49.423Z] for idx in range(3):
[2024-11-23T00:19:49.423Z] title = (
[2024-11-23T00:19:49.423Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.423Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.423Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.423Z] )
[2024-11-23T00:19:49.423Z] text = (
[2024-11-23T00:19:49.423Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.423Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.423Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.423Z] )
[2024-11-23T00:19:49.423Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.423Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.423Z] self.save_base(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.423Z] updated = self._save_table(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.423Z] results = self._do_insert(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.423Z] return manager._insert(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.423Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.423Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.423Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.423Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.423Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.423Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.423Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.423Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.423Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5212e0>
[2024-11-23T00:19:49.423Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.423Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.423Z] if params is None:
[2024-11-23T00:19:49.423Z] return super().execute(query)
[2024-11-23T00:19:49.423Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.423Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.423Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.423Z] > return super().execute(query, params)
[2024-11-23T00:19:49.423Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.423Z] ______________________ OrderingFilterTests.test_ordering _______________________
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1424b0>
[2024-11-23T00:19:49.423Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.423Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.423Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1424b0>})
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.423Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.423Z] # ever set during testing).
[2024-11-23T00:19:49.423Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.423Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.423Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.423Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.423Z] if params is None:
[2024-11-23T00:19:49.423Z] # params default might be backend specific.
[2024-11-23T00:19:49.423Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.423Z] else:
[2024-11-23T00:19:49.423Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.423Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520560>
[2024-11-23T00:19:49.423Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.423Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.423Z] if params is None:
[2024-11-23T00:19:49.423Z] return super().execute(query)
[2024-11-23T00:19:49.423Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.423Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.423Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.423Z] > return super().execute(query, params)
[2024-11-23T00:19:49.423Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering>
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] def setUp(self):
[2024-11-23T00:19:49.423Z] # Sequence of title/text is:
[2024-11-23T00:19:49.423Z] #
[2024-11-23T00:19:49.423Z] # zyx abc
[2024-11-23T00:19:49.423Z] # yxw bcd
[2024-11-23T00:19:49.423Z] # xwv cde
[2024-11-23T00:19:49.423Z] for idx in range(3):
[2024-11-23T00:19:49.423Z] title = (
[2024-11-23T00:19:49.423Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.423Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.423Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.423Z] )
[2024-11-23T00:19:49.423Z] text = (
[2024-11-23T00:19:49.423Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.423Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.423Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.423Z] )
[2024-11-23T00:19:49.423Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.423Z]
[2024-11-23T00:19:49.423Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.423Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.423Z] self.save_base(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.423Z] updated = self._save_table(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.423Z] results = self._do_insert(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.423Z] return manager._insert(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.423Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.423Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.423Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.423Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.423Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.423Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.423Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.423Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.424Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520560>
[2024-11-23T00:19:49.424Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.424Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.424Z] if params is None:
[2024-11-23T00:19:49.424Z] return super().execute(query)
[2024-11-23T00:19:49.424Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.424Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.424Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.424Z] > return super().execute(query, params)
[2024-11-23T00:19:49.424Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.424Z] _____________ OrderingFilterTests.test_ordering_by_aggregate_field _____________
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c10a0f0>
[2024-11-23T00:19:49.424Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.424Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.424Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c10a0f0>})
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.424Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.424Z] # ever set during testing).
[2024-11-23T00:19:49.424Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.424Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.424Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.424Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.424Z] if params is None:
[2024-11-23T00:19:49.424Z] # params default might be backend specific.
[2024-11-23T00:19:49.424Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.424Z] else:
[2024-11-23T00:19:49.424Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522210>
[2024-11-23T00:19:49.424Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.424Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.424Z] if params is None:
[2024-11-23T00:19:49.424Z] return super().execute(query)
[2024-11-23T00:19:49.424Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.424Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.424Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.424Z] > return super().execute(query, params)
[2024-11-23T00:19:49.424Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_by_aggregate_field>
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def setUp(self):
[2024-11-23T00:19:49.424Z] # Sequence of title/text is:
[2024-11-23T00:19:49.424Z] #
[2024-11-23T00:19:49.424Z] # zyx abc
[2024-11-23T00:19:49.424Z] # yxw bcd
[2024-11-23T00:19:49.424Z] # xwv cde
[2024-11-23T00:19:49.424Z] for idx in range(3):
[2024-11-23T00:19:49.424Z] title = (
[2024-11-23T00:19:49.424Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.424Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.424Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.424Z] )
[2024-11-23T00:19:49.424Z] text = (
[2024-11-23T00:19:49.424Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.424Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.424Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.424Z] )
[2024-11-23T00:19:49.424Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.424Z] self.save_base(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.424Z] updated = self._save_table(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.424Z] results = self._do_insert(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.424Z] return manager._insert(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.424Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.424Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.424Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.424Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.424Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.424Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.424Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.424Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522210>
[2024-11-23T00:19:49.424Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.424Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.424Z] if params is None:
[2024-11-23T00:19:49.424Z] return super().execute(query)
[2024-11-23T00:19:49.424Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.424Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.424Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.424Z] > return super().execute(query, params)
[2024-11-23T00:19:49.424Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.424Z] ______________ OrderingFilterTests.test_ordering_by_dotted_source ______________
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c10b0b0>
[2024-11-23T00:19:49.424Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.424Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.424Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c10b0b0>})
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.424Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.424Z] # ever set during testing).
[2024-11-23T00:19:49.424Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.424Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.424Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.424Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.424Z] if params is None:
[2024-11-23T00:19:49.424Z] # params default might be backend specific.
[2024-11-23T00:19:49.424Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.424Z] else:
[2024-11-23T00:19:49.424Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522180>
[2024-11-23T00:19:49.424Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.424Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.424Z] if params is None:
[2024-11-23T00:19:49.424Z] return super().execute(query)
[2024-11-23T00:19:49.424Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.424Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.424Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.424Z] > return super().execute(query, params)
[2024-11-23T00:19:49.424Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_by_dotted_source>
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] def setUp(self):
[2024-11-23T00:19:49.424Z] # Sequence of title/text is:
[2024-11-23T00:19:49.424Z] #
[2024-11-23T00:19:49.424Z] # zyx abc
[2024-11-23T00:19:49.424Z] # yxw bcd
[2024-11-23T00:19:49.424Z] # xwv cde
[2024-11-23T00:19:49.424Z] for idx in range(3):
[2024-11-23T00:19:49.424Z] title = (
[2024-11-23T00:19:49.424Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.424Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.424Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.424Z] )
[2024-11-23T00:19:49.424Z] text = (
[2024-11-23T00:19:49.424Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.424Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.424Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.424Z] )
[2024-11-23T00:19:49.424Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.424Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.424Z] self.save_base(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.424Z] updated = self._save_table(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.424Z] results = self._do_insert(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.424Z] return manager._insert(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.424Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.424Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.424Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.424Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.424Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.424Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.424Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.424Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.424Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.424Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.424Z]
[2024-11-23T00:19:49.425Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522180>
[2024-11-23T00:19:49.425Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.425Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.425Z] if params is None:
[2024-11-23T00:19:49.425Z] return super().execute(query)
[2024-11-23T00:19:49.425Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.425Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.425Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.425Z] > return super().execute(query, params)
[2024-11-23T00:19:49.425Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.425Z] ________ OrderingFilterTests.test_ordering_with_improper_configuration _________
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c141370>
[2024-11-23T00:19:49.425Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.425Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.425Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c141370>})
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.425Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.425Z] # ever set during testing).
[2024-11-23T00:19:49.425Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.425Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.425Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.425Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.425Z] if params is None:
[2024-11-23T00:19:49.425Z] # params default might be backend specific.
[2024-11-23T00:19:49.425Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.425Z] else:
[2024-11-23T00:19:49.425Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.425Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521370>
[2024-11-23T00:19:49.425Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.425Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.425Z] if params is None:
[2024-11-23T00:19:49.425Z] return super().execute(query)
[2024-11-23T00:19:49.425Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.425Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.425Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.425Z] > return super().execute(query, params)
[2024-11-23T00:19:49.425Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_with_improper_configuration>
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def setUp(self):
[2024-11-23T00:19:49.425Z] # Sequence of title/text is:
[2024-11-23T00:19:49.425Z] #
[2024-11-23T00:19:49.425Z] # zyx abc
[2024-11-23T00:19:49.425Z] # yxw bcd
[2024-11-23T00:19:49.425Z] # xwv cde
[2024-11-23T00:19:49.425Z] for idx in range(3):
[2024-11-23T00:19:49.425Z] title = (
[2024-11-23T00:19:49.425Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.425Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.425Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.425Z] )
[2024-11-23T00:19:49.425Z] text = (
[2024-11-23T00:19:49.425Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.425Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.425Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.425Z] )
[2024-11-23T00:19:49.425Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.425Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.425Z] self.save_base(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.425Z] updated = self._save_table(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.425Z] results = self._do_insert(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.425Z] return manager._insert(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.425Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.425Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.425Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.425Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.425Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.425Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.425Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.425Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.425Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521370>
[2024-11-23T00:19:49.425Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.425Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.425Z] if params is None:
[2024-11-23T00:19:49.425Z] return super().execute(query)
[2024-11-23T00:19:49.425Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.425Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.425Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.425Z] > return super().execute(query, params)
[2024-11-23T00:19:49.425Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.425Z] ______ OrderingFilterTests.test_ordering_with_nonstandard_ordering_param _______
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c10b890>
[2024-11-23T00:19:49.425Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.425Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.425Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c10b890>})
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.425Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.425Z] # ever set during testing).
[2024-11-23T00:19:49.425Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.425Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.425Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.425Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.425Z] if params is None:
[2024-11-23T00:19:49.425Z] # params default might be backend specific.
[2024-11-23T00:19:49.425Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.425Z] else:
[2024-11-23T00:19:49.425Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.425Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522690>
[2024-11-23T00:19:49.425Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.425Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.425Z] if params is None:
[2024-11-23T00:19:49.425Z] return super().execute(query)
[2024-11-23T00:19:49.425Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.425Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.425Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.425Z] > return super().execute(query, params)
[2024-11-23T00:19:49.425Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_with_nonstandard_ordering_param>
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] def setUp(self):
[2024-11-23T00:19:49.425Z] # Sequence of title/text is:
[2024-11-23T00:19:49.425Z] #
[2024-11-23T00:19:49.425Z] # zyx abc
[2024-11-23T00:19:49.425Z] # yxw bcd
[2024-11-23T00:19:49.425Z] # xwv cde
[2024-11-23T00:19:49.425Z] for idx in range(3):
[2024-11-23T00:19:49.425Z] title = (
[2024-11-23T00:19:49.425Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.425Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.425Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.425Z] )
[2024-11-23T00:19:49.425Z] text = (
[2024-11-23T00:19:49.425Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.425Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.425Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.425Z] )
[2024-11-23T00:19:49.425Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.425Z]
[2024-11-23T00:19:49.425Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.425Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.425Z] self.save_base(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.425Z] updated = self._save_table(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.425Z] results = self._do_insert(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.425Z] return manager._insert(
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.425Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.425Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.426Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.426Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.426Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.426Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.426Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.426Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.426Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.426Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522690>
[2024-11-23T00:19:49.426Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.426Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.426Z] if params is None:
[2024-11-23T00:19:49.426Z] return super().execute(query)
[2024-11-23T00:19:49.426Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.426Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.426Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.426Z] > return super().execute(query, params)
[2024-11-23T00:19:49.426Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.426Z] ____ OrderingFilterTests.test_ordering_with_overridden_get_serializer_class ____
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c14d7f0>
[2024-11-23T00:19:49.426Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.426Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.426Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c14d7f0>})
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.426Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.426Z] # ever set during testing).
[2024-11-23T00:19:49.426Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.426Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.426Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.426Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.426Z] if params is None:
[2024-11-23T00:19:49.426Z] # params default might be backend specific.
[2024-11-23T00:19:49.426Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.426Z] else:
[2024-11-23T00:19:49.426Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.426Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bbf0>
[2024-11-23T00:19:49.426Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.426Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.426Z] if params is None:
[2024-11-23T00:19:49.426Z] return super().execute(query)
[2024-11-23T00:19:49.426Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.426Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.426Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.426Z] > return super().execute(query, params)
[2024-11-23T00:19:49.426Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_with_overridden_get_serializer_class>
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def setUp(self):
[2024-11-23T00:19:49.426Z] # Sequence of title/text is:
[2024-11-23T00:19:49.426Z] #
[2024-11-23T00:19:49.426Z] # zyx abc
[2024-11-23T00:19:49.426Z] # yxw bcd
[2024-11-23T00:19:49.426Z] # xwv cde
[2024-11-23T00:19:49.426Z] for idx in range(3):
[2024-11-23T00:19:49.426Z] title = (
[2024-11-23T00:19:49.426Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.426Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.426Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.426Z] )
[2024-11-23T00:19:49.426Z] text = (
[2024-11-23T00:19:49.426Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.426Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.426Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.426Z] )
[2024-11-23T00:19:49.426Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.426Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.426Z] self.save_base(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.426Z] updated = self._save_table(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.426Z] results = self._do_insert(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.426Z] return manager._insert(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.426Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.426Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.426Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.426Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.426Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.426Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.426Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.426Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.426Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bbf0>
[2024-11-23T00:19:49.426Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.426Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.426Z] if params is None:
[2024-11-23T00:19:49.426Z] return super().execute(query)
[2024-11-23T00:19:49.426Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.426Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.426Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.426Z] > return super().execute(query, params)
[2024-11-23T00:19:49.426Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.426Z] __________ OrderingFilterTests.test_ordering_without_ordering_fields ___________
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c14e390>
[2024-11-23T00:19:49.426Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.426Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.426Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c14e390>})
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.426Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.426Z] # ever set during testing).
[2024-11-23T00:19:49.426Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.426Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.426Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.426Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.426Z] if params is None:
[2024-11-23T00:19:49.426Z] # params default might be backend specific.
[2024-11-23T00:19:49.426Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.426Z] else:
[2024-11-23T00:19:49.426Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.426Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c846450>
[2024-11-23T00:19:49.426Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.426Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.426Z] if params is None:
[2024-11-23T00:19:49.426Z] return super().execute(query)
[2024-11-23T00:19:49.426Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.426Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.426Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.426Z] > return super().execute(query, params)
[2024-11-23T00:19:49.426Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_ordering_without_ordering_fields>
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] def setUp(self):
[2024-11-23T00:19:49.426Z] # Sequence of title/text is:
[2024-11-23T00:19:49.426Z] #
[2024-11-23T00:19:49.426Z] # zyx abc
[2024-11-23T00:19:49.426Z] # yxw bcd
[2024-11-23T00:19:49.426Z] # xwv cde
[2024-11-23T00:19:49.426Z] for idx in range(3):
[2024-11-23T00:19:49.426Z] title = (
[2024-11-23T00:19:49.426Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.426Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.426Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.426Z] )
[2024-11-23T00:19:49.426Z] text = (
[2024-11-23T00:19:49.426Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.426Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.426Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.426Z] )
[2024-11-23T00:19:49.426Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.426Z]
[2024-11-23T00:19:49.426Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.426Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.426Z] self.save_base(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.426Z] updated = self._save_table(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.426Z] results = self._do_insert(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.426Z] return manager._insert(
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.426Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.426Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.426Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.426Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.427Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.427Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.427Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.427Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.427Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c846450>
[2024-11-23T00:19:49.427Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.427Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.427Z] if params is None:
[2024-11-23T00:19:49.427Z] return super().execute(query)
[2024-11-23T00:19:49.427Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.427Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.427Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.427Z] > return super().execute(query, params)
[2024-11-23T00:19:49.427Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.427Z] __________________ OrderingFilterTests.test_reverse_ordering ___________________
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0e36b0>
[2024-11-23T00:19:49.427Z] sql = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (%s, %s) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.427Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.427Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0e36b0>})
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.427Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.427Z] # ever set during testing).
[2024-11-23T00:19:49.427Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.427Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.427Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.427Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.427Z] if params is None:
[2024-11-23T00:19:49.427Z] # params default might be backend specific.
[2024-11-23T00:19:49.427Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.427Z] else:
[2024-11-23T00:19:49.427Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.427Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bbf0>
[2024-11-23T00:19:49.427Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.427Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.427Z] if params is None:
[2024-11-23T00:19:49.427Z] return super().execute(query)
[2024-11-23T00:19:49.427Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.427Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.427Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.427Z] > return super().execute(query, params)
[2024-11-23T00:19:49.427Z] E sqlite3.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <tests.test_filters.OrderingFilterTests testMethod=test_reverse_ordering>
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def setUp(self):
[2024-11-23T00:19:49.427Z] # Sequence of title/text is:
[2024-11-23T00:19:49.427Z] #
[2024-11-23T00:19:49.427Z] # zyx abc
[2024-11-23T00:19:49.427Z] # yxw bcd
[2024-11-23T00:19:49.427Z] # xwv cde
[2024-11-23T00:19:49.427Z] for idx in range(3):
[2024-11-23T00:19:49.427Z] title = (
[2024-11-23T00:19:49.427Z] chr(ord('z') - idx) +
[2024-11-23T00:19:49.427Z] chr(ord('y') - idx) +
[2024-11-23T00:19:49.427Z] chr(ord('x') - idx)
[2024-11-23T00:19:49.427Z] )
[2024-11-23T00:19:49.427Z] text = (
[2024-11-23T00:19:49.427Z] chr(idx + ord('a')) +
[2024-11-23T00:19:49.427Z] chr(idx + ord('b')) +
[2024-11-23T00:19:49.427Z] chr(idx + ord('c'))
[2024-11-23T00:19:49.427Z] )
[2024-11-23T00:19:49.427Z] > OrderingFilterModel(title=title, text=text).save()
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] tests/test_filters.py:585:
[2024-11-23T00:19:49.427Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.427Z] self.save_base(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.427Z] updated = self._save_table(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.427Z] results = self._do_insert(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.427Z] return manager._insert(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.427Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.427Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.427Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.427Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.427Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.427Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.427Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.427Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c09bbf0>
[2024-11-23T00:19:49.427Z] query = 'INSERT INTO "tests_orderingfiltermodel" ("title", "text") VALUES (?, ?) RETURNING "tests_orderingfiltermodel"."id"'
[2024-11-23T00:19:49.427Z] params = ('zyx', 'abc')
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.427Z] if params is None:
[2024-11-23T00:19:49.427Z] return super().execute(query)
[2024-11-23T00:19:49.427Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.427Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.427Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.427Z] > return super().execute(query, params)
[2024-11-23T00:19:49.427Z] E django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.427Z] ___ SensitiveOrderingFilterTests.test_cannot_order_by_non_serializer_fields ____
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c101910>
[2024-11-23T00:19:49.427Z] sql = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (%s, %s) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T00:19:49.427Z] params = ('userA', 'passA')
[2024-11-23T00:19:49.427Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c101910>})
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.427Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.427Z] # ever set during testing).
[2024-11-23T00:19:49.427Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.427Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.427Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.427Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.427Z] if params is None:
[2024-11-23T00:19:49.427Z] # params default might be backend specific.
[2024-11-23T00:19:49.427Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.427Z] else:
[2024-11-23T00:19:49.427Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.427Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.427Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T00:19:49.427Z] params = ('userA', 'passA')
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.427Z] if params is None:
[2024-11-23T00:19:49.427Z] return super().execute(query)
[2024-11-23T00:19:49.427Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.427Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.427Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.427Z] > return super().execute(query, params)
[2024-11-23T00:19:49.427Z] E sqlite3.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] self = <tests.test_filters.SensitiveOrderingFilterTests testMethod=test_cannot_order_by_non_serializer_fields>
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] def setUp(self):
[2024-11-23T00:19:49.427Z] for idx in range(3):
[2024-11-23T00:19:49.427Z] username = {0: 'userA', 1: 'userB', 2: 'userC'}[idx]
[2024-11-23T00:19:49.427Z] password = {0: 'passA', 1: 'passC', 2: 'passB'}[idx]
[2024-11-23T00:19:49.427Z] > SensitiveOrderingFilterModel(username=username, password=password).save()
[2024-11-23T00:19:49.427Z]
[2024-11-23T00:19:49.427Z] tests/test_filters.py:889:
[2024-11-23T00:19:49.427Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.427Z] self.save_base(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.427Z] updated = self._save_table(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.427Z] results = self._do_insert(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.427Z] return manager._insert(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.427Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.427Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.427Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.427Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.427Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.427Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.427Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.427Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.428Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.428Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('userA', 'passA')
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] return super().execute(query)
[2024-11-23T00:19:49.428Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.428Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.428Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.428Z] > return super().execute(query, params)
[2024-11-23T00:19:49.428Z] E django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.428Z] _________ SensitiveOrderingFilterTests.test_order_by_serializer_fields _________
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c14dd30>
[2024-11-23T00:19:49.428Z] sql = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (%s, %s) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('userA', 'passA')
[2024-11-23T00:19:49.428Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c14dd30>})
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.428Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.428Z] # ever set during testing).
[2024-11-23T00:19:49.428Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.428Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.428Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.428Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] # params default might be backend specific.
[2024-11-23T00:19:49.428Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.428Z] else:
[2024-11-23T00:19:49.428Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.428Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('userA', 'passA')
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] return super().execute(query)
[2024-11-23T00:19:49.428Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.428Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.428Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.428Z] > return super().execute(query, params)
[2024-11-23T00:19:49.428Z] E sqlite3.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <tests.test_filters.SensitiveOrderingFilterTests testMethod=test_order_by_serializer_fields>
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def setUp(self):
[2024-11-23T00:19:49.428Z] for idx in range(3):
[2024-11-23T00:19:49.428Z] username = {0: 'userA', 1: 'userB', 2: 'userC'}[idx]
[2024-11-23T00:19:49.428Z] password = {0: 'passA', 1: 'passC', 2: 'passB'}[idx]
[2024-11-23T00:19:49.428Z] > SensitiveOrderingFilterModel(username=username, password=password).save()
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] tests/test_filters.py:889:
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.428Z] self.save_base(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.428Z] updated = self._save_table(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.428Z] results = self._do_insert(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.428Z] return manager._insert(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.428Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.428Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.428Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.428Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.428Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.428Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.428Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.428Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.428Z] query = 'INSERT INTO "tests_sensitiveorderingfiltermodel" ("username", "password") VALUES (?, ?) RETURNING "tests_sensitiveorderingfiltermodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('userA', 'passA')
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] return super().execute(query)
[2024-11-23T00:19:49.428Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.428Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.428Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.428Z] > return super().execute(query, params)
[2024-11-23T00:19:49.428Z] E django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.428Z] ______________________ TestRootView.test_delete_root_view ______________________
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c14f1d0>
[2024-11-23T00:19:49.428Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('foo',)
[2024-11-23T00:19:49.428Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c14f1d0>})
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.428Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.428Z] # ever set during testing).
[2024-11-23T00:19:49.428Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.428Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.428Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.428Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] # params default might be backend specific.
[2024-11-23T00:19:49.428Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.428Z] else:
[2024-11-23T00:19:49.428Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5211c0>
[2024-11-23T00:19:49.428Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('foo',)
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] return super().execute(query)
[2024-11-23T00:19:49.428Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.428Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.428Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.428Z] > return super().execute(query, params)
[2024-11-23T00:19:49.428Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <tests.test_generics.TestRootView testMethod=test_delete_root_view>
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def setUp(self):
[2024-11-23T00:19:49.428Z] """
[2024-11-23T00:19:49.428Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.428Z] """
[2024-11-23T00:19:49.428Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.428Z] for item in items:
[2024-11-23T00:19:49.428Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.428Z] self.save_base(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.428Z] updated = self._save_table(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.428Z] results = self._do_insert(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.428Z] return manager._insert(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.428Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.428Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.428Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.428Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.428Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.428Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.428Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.428Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.428Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5211c0>
[2024-11-23T00:19:49.428Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.428Z] params = ('foo',)
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.428Z] if params is None:
[2024-11-23T00:19:49.428Z] return super().execute(query)
[2024-11-23T00:19:49.428Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.428Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.428Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.428Z] > return super().execute(query, params)
[2024-11-23T00:19:49.428Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.428Z]
[2024-11-23T00:19:49.428Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.429Z] _______________________ TestRootView.test_get_root_view ________________________
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c06ba10>
[2024-11-23T00:19:49.429Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.429Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c06ba10>})
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.429Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.429Z] # ever set during testing).
[2024-11-23T00:19:49.429Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.429Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.429Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.429Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.429Z] if params is None:
[2024-11-23T00:19:49.429Z] # params default might be backend specific.
[2024-11-23T00:19:49.429Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.429Z] else:
[2024-11-23T00:19:49.429Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.429Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.429Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.429Z] if params is None:
[2024-11-23T00:19:49.429Z] return super().execute(query)
[2024-11-23T00:19:49.429Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.429Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.429Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.429Z] > return super().execute(query, params)
[2024-11-23T00:19:49.429Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <tests.test_generics.TestRootView testMethod=test_get_root_view>
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def setUp(self):
[2024-11-23T00:19:49.429Z] """
[2024-11-23T00:19:49.429Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.429Z] """
[2024-11-23T00:19:49.429Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.429Z] for item in items:
[2024-11-23T00:19:49.429Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.429Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.429Z] self.save_base(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.429Z] updated = self._save_table(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.429Z] results = self._do_insert(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.429Z] return manager._insert(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.429Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.429Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.429Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.429Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.429Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.429Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.429Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.429Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.429Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.429Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.429Z] if params is None:
[2024-11-23T00:19:49.429Z] return super().execute(query)
[2024-11-23T00:19:49.429Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.429Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.429Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.429Z] > return super().execute(query, params)
[2024-11-23T00:19:49.429Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.429Z] _______________________ TestRootView.test_head_root_view _______________________
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f96d0>
[2024-11-23T00:19:49.429Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.429Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f96d0>})
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.429Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.429Z] # ever set during testing).
[2024-11-23T00:19:49.429Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.429Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.429Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.429Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.429Z] if params is None:
[2024-11-23T00:19:49.429Z] # params default might be backend specific.
[2024-11-23T00:19:49.429Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.429Z] else:
[2024-11-23T00:19:49.429Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.429Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522b10>
[2024-11-23T00:19:49.429Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.429Z] if params is None:
[2024-11-23T00:19:49.429Z] return super().execute(query)
[2024-11-23T00:19:49.429Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.429Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.429Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.429Z] > return super().execute(query, params)
[2024-11-23T00:19:49.429Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <tests.test_generics.TestRootView testMethod=test_head_root_view>
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def setUp(self):
[2024-11-23T00:19:49.429Z] """
[2024-11-23T00:19:49.429Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.429Z] """
[2024-11-23T00:19:49.429Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.429Z] for item in items:
[2024-11-23T00:19:49.429Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.429Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.429Z] self.save_base(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.429Z] updated = self._save_table(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.429Z] results = self._do_insert(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.429Z] return manager._insert(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.429Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.429Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.429Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.429Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.429Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.429Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.429Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.429Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.429Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522b10>
[2024-11-23T00:19:49.429Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.429Z] if params is None:
[2024-11-23T00:19:49.429Z] return super().execute(query)
[2024-11-23T00:19:49.429Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.429Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.429Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.429Z] > return super().execute(query, params)
[2024-11-23T00:19:49.429Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.429Z] _____________________ TestRootView.test_post_cannot_set_id _____________________
[2024-11-23T00:19:49.429Z]
[2024-11-23T00:19:49.429Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f9bb0>
[2024-11-23T00:19:49.429Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.429Z] params = ('foo',)
[2024-11-23T00:19:49.430Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f9bb0>})
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.430Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.430Z] # ever set during testing).
[2024-11-23T00:19:49.430Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.430Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.430Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.430Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] # params default might be backend specific.
[2024-11-23T00:19:49.430Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.430Z] else:
[2024-11-23T00:19:49.430Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.430Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] return super().execute(query)
[2024-11-23T00:19:49.430Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.430Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.430Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.430Z] > return super().execute(query, params)
[2024-11-23T00:19:49.430Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <tests.test_generics.TestRootView testMethod=test_post_cannot_set_id>
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def setUp(self):
[2024-11-23T00:19:49.430Z] """
[2024-11-23T00:19:49.430Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.430Z] """
[2024-11-23T00:19:49.430Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.430Z] for item in items:
[2024-11-23T00:19:49.430Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.430Z] self.save_base(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.430Z] updated = self._save_table(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.430Z] results = self._do_insert(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.430Z] return manager._insert(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.430Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.430Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.430Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.430Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.430Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.430Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.430Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.430Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.430Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] return super().execute(query)
[2024-11-23T00:19:49.430Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.430Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.430Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.430Z] > return super().execute(query, params)
[2024-11-23T00:19:49.430Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.430Z] ____________________ TestRootView.test_post_error_root_view ____________________
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f99d0>
[2024-11-23T00:19:49.430Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f99d0>})
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.430Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.430Z] # ever set during testing).
[2024-11-23T00:19:49.430Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.430Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.430Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.430Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] # params default might be backend specific.
[2024-11-23T00:19:49.430Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.430Z] else:
[2024-11-23T00:19:49.430Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522570>
[2024-11-23T00:19:49.430Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] return super().execute(query)
[2024-11-23T00:19:49.430Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.430Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.430Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.430Z] > return super().execute(query, params)
[2024-11-23T00:19:49.430Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <tests.test_generics.TestRootView testMethod=test_post_error_root_view>
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def setUp(self):
[2024-11-23T00:19:49.430Z] """
[2024-11-23T00:19:49.430Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.430Z] """
[2024-11-23T00:19:49.430Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.430Z] for item in items:
[2024-11-23T00:19:49.430Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.430Z] self.save_base(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.430Z] updated = self._save_table(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.430Z] results = self._do_insert(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.430Z] return manager._insert(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.430Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.430Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.430Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.430Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.430Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.430Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.430Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.430Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522570>
[2024-11-23T00:19:49.430Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] return super().execute(query)
[2024-11-23T00:19:49.430Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.430Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.430Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.430Z] > return super().execute(query, params)
[2024-11-23T00:19:49.430Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.430Z] _______________________ TestRootView.test_post_root_view _______________________
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f0d70>
[2024-11-23T00:19:49.430Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f0d70>})
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.430Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.430Z] # ever set during testing).
[2024-11-23T00:19:49.430Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.430Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.430Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.430Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.430Z] if params is None:
[2024-11-23T00:19:49.430Z] # params default might be backend specific.
[2024-11-23T00:19:49.430Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.430Z] else:
[2024-11-23T00:19:49.430Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.430Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.430Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.430Z] params = ('foo',)
[2024-11-23T00:19:49.430Z]
[2024-11-23T00:19:49.430Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] return super().execute(query)
[2024-11-23T00:19:49.431Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.431Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.431Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.431Z] > return super().execute(query, params)
[2024-11-23T00:19:49.431Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <tests.test_generics.TestRootView testMethod=test_post_root_view>
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def setUp(self):
[2024-11-23T00:19:49.431Z] """
[2024-11-23T00:19:49.431Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.431Z] """
[2024-11-23T00:19:49.431Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.431Z] for item in items:
[2024-11-23T00:19:49.431Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.431Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.431Z] self.save_base(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.431Z] updated = self._save_table(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.431Z] results = self._do_insert(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.431Z] return manager._insert(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.431Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.431Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.431Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.431Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.431Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.431Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.431Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.431Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.431Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3792e0>
[2024-11-23T00:19:49.431Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.431Z] params = ('foo',)
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] return super().execute(query)
[2024-11-23T00:19:49.431Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.431Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.431Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.431Z] > return super().execute(query, params)
[2024-11-23T00:19:49.431Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.431Z] _______________________ TestRootView.test_put_root_view ________________________
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f15b0>
[2024-11-23T00:19:49.431Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.431Z] params = ('foo',)
[2024-11-23T00:19:49.431Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f15b0>})
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.431Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.431Z] # ever set during testing).
[2024-11-23T00:19:49.431Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.431Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.431Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.431Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] # params default might be backend specific.
[2024-11-23T00:19:49.431Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.431Z] else:
[2024-11-23T00:19:49.431Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.431Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521400>
[2024-11-23T00:19:49.431Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.431Z] params = ('foo',)
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] return super().execute(query)
[2024-11-23T00:19:49.431Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.431Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.431Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.431Z] > return super().execute(query, params)
[2024-11-23T00:19:49.431Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <tests.test_generics.TestRootView testMethod=test_put_root_view>
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def setUp(self):
[2024-11-23T00:19:49.431Z] """
[2024-11-23T00:19:49.431Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.431Z] """
[2024-11-23T00:19:49.431Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.431Z] for item in items:
[2024-11-23T00:19:49.431Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] tests/test_generics.py:88:
[2024-11-23T00:19:49.431Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.431Z] self.save_base(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.431Z] updated = self._save_table(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.431Z] results = self._do_insert(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.431Z] return manager._insert(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.431Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.431Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.431Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.431Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.431Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.431Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.431Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.431Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.431Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521400>
[2024-11-23T00:19:49.431Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.431Z] params = ('foo',)
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] return super().execute(query)
[2024-11-23T00:19:49.431Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.431Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.431Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.431Z] > return super().execute(query, params)
[2024-11-23T00:19:49.431Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.431Z] __________________ TestInstanceView.test_delete_instance_view __________________
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1fabd0>
[2024-11-23T00:19:49.431Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.431Z] params = ('foo',)
[2024-11-23T00:19:49.431Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1fabd0>})
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.431Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.431Z] # ever set during testing).
[2024-11-23T00:19:49.431Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.431Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.431Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.431Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] # params default might be backend specific.
[2024-11-23T00:19:49.431Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.431Z] else:
[2024-11-23T00:19:49.431Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.431Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.431Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.431Z] params = ('foo',)
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.431Z] if params is None:
[2024-11-23T00:19:49.431Z] return super().execute(query)
[2024-11-23T00:19:49.431Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.431Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.431Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.431Z] > return super().execute(query, params)
[2024-11-23T00:19:49.431Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] self = <tests.test_generics.TestInstanceView testMethod=test_delete_instance_view>
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] def setUp(self):
[2024-11-23T00:19:49.431Z] """
[2024-11-23T00:19:49.431Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.431Z] """
[2024-11-23T00:19:49.431Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.431Z] for item in items:
[2024-11-23T00:19:49.431Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.431Z]
[2024-11-23T00:19:49.431Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.432Z] self.save_base(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.432Z] updated = self._save_table(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.432Z] results = self._do_insert(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.432Z] return manager._insert(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.432Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.432Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.432Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.432Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.432Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.432Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.432Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.432Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.432Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.432Z] params = ('foo',)
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.432Z] if params is None:
[2024-11-23T00:19:49.432Z] return super().execute(query)
[2024-11-23T00:19:49.432Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.432Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.432Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.432Z] > return super().execute(query, params)
[2024-11-23T00:19:49.432Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.432Z] ___________________ TestInstanceView.test_get_instance_view ____________________
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f3dd0>
[2024-11-23T00:19:49.432Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.432Z] params = ('foo',)
[2024-11-23T00:19:49.432Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f3dd0>})
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.432Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.432Z] # ever set during testing).
[2024-11-23T00:19:49.432Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.432Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.432Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.432Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.432Z] if params is None:
[2024-11-23T00:19:49.432Z] # params default might be backend specific.
[2024-11-23T00:19:49.432Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.432Z] else:
[2024-11-23T00:19:49.432Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520440>
[2024-11-23T00:19:49.432Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.432Z] params = ('foo',)
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.432Z] if params is None:
[2024-11-23T00:19:49.432Z] return super().execute(query)
[2024-11-23T00:19:49.432Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.432Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.432Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.432Z] > return super().execute(query, params)
[2024-11-23T00:19:49.432Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <tests.test_generics.TestInstanceView testMethod=test_get_instance_view>
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def setUp(self):
[2024-11-23T00:19:49.432Z] """
[2024-11-23T00:19:49.432Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.432Z] """
[2024-11-23T00:19:49.432Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.432Z] for item in items:
[2024-11-23T00:19:49.432Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.432Z] self.save_base(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.432Z] updated = self._save_table(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.432Z] results = self._do_insert(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.432Z] return manager._insert(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.432Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.432Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.432Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.432Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.432Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.432Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.432Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.432Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520440>
[2024-11-23T00:19:49.432Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.432Z] params = ('foo',)
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.432Z] if params is None:
[2024-11-23T00:19:49.432Z] return super().execute(query)
[2024-11-23T00:19:49.432Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.432Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.432Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.432Z] > return super().execute(query, params)
[2024-11-23T00:19:49.432Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.432Z] ____________ TestInstanceView.test_get_instance_view_incorrect_arg _____________
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f1910>
[2024-11-23T00:19:49.432Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.432Z] params = ('foo',)
[2024-11-23T00:19:49.432Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f1910>})
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.432Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.432Z] # ever set during testing).
[2024-11-23T00:19:49.432Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.432Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.432Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.432Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.432Z] if params is None:
[2024-11-23T00:19:49.432Z] # params default might be backend specific.
[2024-11-23T00:19:49.432Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.432Z] else:
[2024-11-23T00:19:49.432Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.432Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.432Z] params = ('foo',)
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.432Z] if params is None:
[2024-11-23T00:19:49.432Z] return super().execute(query)
[2024-11-23T00:19:49.432Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.432Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.432Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.432Z] > return super().execute(query, params)
[2024-11-23T00:19:49.432Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] self = <tests.test_generics.TestInstanceView testMethod=test_get_instance_view_incorrect_arg>
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] def setUp(self):
[2024-11-23T00:19:49.432Z] """
[2024-11-23T00:19:49.432Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.432Z] """
[2024-11-23T00:19:49.432Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.432Z] for item in items:
[2024-11-23T00:19:49.432Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.432Z]
[2024-11-23T00:19:49.432Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.432Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.432Z] self.save_base(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.432Z] updated = self._save_table(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.432Z] results = self._do_insert(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.432Z] return manager._insert(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.432Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.432Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.432Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.432Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.432Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.432Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.433Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.433Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.433Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.433Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] return super().execute(query)
[2024-11-23T00:19:49.433Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.433Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.433Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.433Z] > return super().execute(query, params)
[2024-11-23T00:19:49.433Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.433Z] _____________ TestInstanceView.test_patch_cannot_create_an_object ______________
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1f3410>
[2024-11-23T00:19:49.433Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1f3410>})
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.433Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.433Z] # ever set during testing).
[2024-11-23T00:19:49.433Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.433Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.433Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.433Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] # params default might be backend specific.
[2024-11-23T00:19:49.433Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.433Z] else:
[2024-11-23T00:19:49.433Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521f40>
[2024-11-23T00:19:49.433Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] return super().execute(query)
[2024-11-23T00:19:49.433Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.433Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.433Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.433Z] > return super().execute(query, params)
[2024-11-23T00:19:49.433Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <tests.test_generics.TestInstanceView testMethod=test_patch_cannot_create_an_object>
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def setUp(self):
[2024-11-23T00:19:49.433Z] """
[2024-11-23T00:19:49.433Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.433Z] """
[2024-11-23T00:19:49.433Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.433Z] for item in items:
[2024-11-23T00:19:49.433Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.433Z] self.save_base(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.433Z] updated = self._save_table(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.433Z] results = self._do_insert(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.433Z] return manager._insert(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.433Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.433Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.433Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.433Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.433Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.433Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.433Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.433Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521f40>
[2024-11-23T00:19:49.433Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] return super().execute(query)
[2024-11-23T00:19:49.433Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.433Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.433Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.433Z] > return super().execute(query, params)
[2024-11-23T00:19:49.433Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.433Z] __________________ TestInstanceView.test_patch_instance_view ___________________
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c17fa70>
[2024-11-23T00:19:49.433Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c17fa70>})
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.433Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.433Z] # ever set during testing).
[2024-11-23T00:19:49.433Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.433Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.433Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.433Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] # params default might be backend specific.
[2024-11-23T00:19:49.433Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.433Z] else:
[2024-11-23T00:19:49.433Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.433Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] return super().execute(query)
[2024-11-23T00:19:49.433Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.433Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.433Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.433Z] > return super().execute(query, params)
[2024-11-23T00:19:49.433Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <tests.test_generics.TestInstanceView testMethod=test_patch_instance_view>
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def setUp(self):
[2024-11-23T00:19:49.433Z] """
[2024-11-23T00:19:49.433Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.433Z] """
[2024-11-23T00:19:49.433Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.433Z] for item in items:
[2024-11-23T00:19:49.433Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.433Z] self.save_base(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.433Z] updated = self._save_table(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.433Z] results = self._do_insert(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.433Z] return manager._insert(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.433Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.433Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.433Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.433Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.433Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.433Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.433Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.433Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.433Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.433Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.433Z] params = ('foo',)
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.433Z] if params is None:
[2024-11-23T00:19:49.433Z] return super().execute(query)
[2024-11-23T00:19:49.433Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.433Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.433Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.433Z] > return super().execute(query, params)
[2024-11-23T00:19:49.433Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.433Z]
[2024-11-23T00:19:49.433Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.434Z] ___________________ TestInstanceView.test_post_instance_view ___________________
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c17c4d0>
[2024-11-23T00:19:49.434Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.434Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c17c4d0>})
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.434Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.434Z] # ever set during testing).
[2024-11-23T00:19:49.434Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.434Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.434Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.434Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.434Z] if params is None:
[2024-11-23T00:19:49.434Z] # params default might be backend specific.
[2024-11-23T00:19:49.434Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.434Z] else:
[2024-11-23T00:19:49.434Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.434Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522ba0>
[2024-11-23T00:19:49.434Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.434Z] if params is None:
[2024-11-23T00:19:49.434Z] return super().execute(query)
[2024-11-23T00:19:49.434Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.434Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.434Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.434Z] > return super().execute(query, params)
[2024-11-23T00:19:49.434Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <tests.test_generics.TestInstanceView testMethod=test_post_instance_view>
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def setUp(self):
[2024-11-23T00:19:49.434Z] """
[2024-11-23T00:19:49.434Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.434Z] """
[2024-11-23T00:19:49.434Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.434Z] for item in items:
[2024-11-23T00:19:49.434Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.434Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.434Z] self.save_base(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.434Z] updated = self._save_table(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.434Z] results = self._do_insert(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.434Z] return manager._insert(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.434Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.434Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.434Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.434Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.434Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.434Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.434Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.434Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.434Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522ba0>
[2024-11-23T00:19:49.434Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.434Z] if params is None:
[2024-11-23T00:19:49.434Z] return super().execute(query)
[2024-11-23T00:19:49.434Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.434Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.434Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.434Z] > return super().execute(query, params)
[2024-11-23T00:19:49.434Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.434Z] ___________________ TestInstanceView.test_put_cannot_set_id ____________________
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c20c4d0>
[2024-11-23T00:19:49.434Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.434Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c20c4d0>})
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.434Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.434Z] # ever set during testing).
[2024-11-23T00:19:49.434Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.434Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.434Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.434Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.434Z] if params is None:
[2024-11-23T00:19:49.434Z] # params default might be backend specific.
[2024-11-23T00:19:49.434Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.434Z] else:
[2024-11-23T00:19:49.434Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.434Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.434Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.434Z] if params is None:
[2024-11-23T00:19:49.434Z] return super().execute(query)
[2024-11-23T00:19:49.434Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.434Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.434Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.434Z] > return super().execute(query, params)
[2024-11-23T00:19:49.434Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_cannot_set_id>
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def setUp(self):
[2024-11-23T00:19:49.434Z] """
[2024-11-23T00:19:49.434Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.434Z] """
[2024-11-23T00:19:49.434Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.434Z] for item in items:
[2024-11-23T00:19:49.434Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.434Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.434Z] self.save_base(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.434Z] updated = self._save_table(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.434Z] results = self._do_insert(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.434Z] return manager._insert(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.434Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.434Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.434Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.434Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.434Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.434Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.434Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.434Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.434Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.434Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.434Z] if params is None:
[2024-11-23T00:19:49.434Z] return super().execute(query)
[2024-11-23T00:19:49.434Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.434Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.434Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.434Z] > return super().execute(query, params)
[2024-11-23T00:19:49.434Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.434Z] ________________ TestInstanceView.test_put_error_instance_view _________________
[2024-11-23T00:19:49.434Z]
[2024-11-23T00:19:49.434Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c20ce90>
[2024-11-23T00:19:49.434Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.434Z] params = ('foo',)
[2024-11-23T00:19:49.435Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c20ce90>})
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.435Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.435Z] # ever set during testing).
[2024-11-23T00:19:49.435Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.435Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.435Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.435Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] # params default might be backend specific.
[2024-11-23T00:19:49.435Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.435Z] else:
[2024-11-23T00:19:49.435Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521fd0>
[2024-11-23T00:19:49.435Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.435Z] params = ('foo',)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] return super().execute(query)
[2024-11-23T00:19:49.435Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.435Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.435Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.435Z] > return super().execute(query, params)
[2024-11-23T00:19:49.435Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_error_instance_view>
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def setUp(self):
[2024-11-23T00:19:49.435Z] """
[2024-11-23T00:19:49.435Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.435Z] """
[2024-11-23T00:19:49.435Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.435Z] for item in items:
[2024-11-23T00:19:49.435Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.435Z] self.save_base(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.435Z] updated = self._save_table(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.435Z] results = self._do_insert(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.435Z] return manager._insert(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.435Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.435Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.435Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.435Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.435Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.435Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.435Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.435Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521fd0>
[2024-11-23T00:19:49.435Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.435Z] params = ('foo',)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] return super().execute(query)
[2024-11-23T00:19:49.435Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.435Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.435Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.435Z] > return super().execute(query, params)
[2024-11-23T00:19:49.435Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.435Z] ___________________ TestInstanceView.test_put_instance_view ____________________
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c17c170>
[2024-11-23T00:19:49.435Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.435Z] params = ('foo',)
[2024-11-23T00:19:49.435Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c17c170>})
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.435Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.435Z] # ever set during testing).
[2024-11-23T00:19:49.435Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.435Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.435Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.435Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] # params default might be backend specific.
[2024-11-23T00:19:49.435Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.435Z] else:
[2024-11-23T00:19:49.435Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.435Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.435Z] params = ('foo',)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] return super().execute(query)
[2024-11-23T00:19:49.435Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.435Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.435Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.435Z] > return super().execute(query, params)
[2024-11-23T00:19:49.435Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_instance_view>
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def setUp(self):
[2024-11-23T00:19:49.435Z] """
[2024-11-23T00:19:49.435Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.435Z] """
[2024-11-23T00:19:49.435Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.435Z] for item in items:
[2024-11-23T00:19:49.435Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.435Z] self.save_base(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.435Z] updated = self._save_table(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.435Z] results = self._do_insert(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.435Z] return manager._insert(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.435Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.435Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.435Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.435Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.435Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.435Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.435Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.435Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.435Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.435Z] params = ('foo',)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] return super().execute(query)
[2024-11-23T00:19:49.435Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.435Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.435Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.435Z] > return super().execute(query, params)
[2024-11-23T00:19:49.435Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.435Z] ________________ TestInstanceView.test_put_to_deleted_instance _________________
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c17c830>
[2024-11-23T00:19:49.435Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.435Z] params = ('foo',)
[2024-11-23T00:19:49.435Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c17c830>})
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.435Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.435Z] # ever set during testing).
[2024-11-23T00:19:49.435Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.435Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.435Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.435Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.435Z] if params is None:
[2024-11-23T00:19:49.435Z] # params default might be backend specific.
[2024-11-23T00:19:49.435Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.435Z] else:
[2024-11-23T00:19:49.435Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.435Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.435Z]
[2024-11-23T00:19:49.435Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522f00>
[2024-11-23T00:19:49.436Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] return super().execute(query)
[2024-11-23T00:19:49.436Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.436Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.436Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.436Z] > return super().execute(query, params)
[2024-11-23T00:19:49.436Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_to_deleted_instance>
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def setUp(self):
[2024-11-23T00:19:49.436Z] """
[2024-11-23T00:19:49.436Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.436Z] """
[2024-11-23T00:19:49.436Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.436Z] for item in items:
[2024-11-23T00:19:49.436Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.436Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.436Z] self.save_base(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.436Z] updated = self._save_table(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.436Z] results = self._do_insert(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.436Z] return manager._insert(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.436Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.436Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.436Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.436Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.436Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.436Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.436Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.436Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.436Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522f00>
[2024-11-23T00:19:49.436Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] return super().execute(query)
[2024-11-23T00:19:49.436Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.436Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.436Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.436Z] > return super().execute(query, params)
[2024-11-23T00:19:49.436Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.436Z] ______________ TestInstanceView.test_put_to_filtered_out_instance ______________
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c24c6b0>
[2024-11-23T00:19:49.436Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c24c6b0>})
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.436Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.436Z] # ever set during testing).
[2024-11-23T00:19:49.436Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.436Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.436Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.436Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] # params default might be backend specific.
[2024-11-23T00:19:49.436Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.436Z] else:
[2024-11-23T00:19:49.436Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.436Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c846450>
[2024-11-23T00:19:49.436Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] return super().execute(query)
[2024-11-23T00:19:49.436Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.436Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.436Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.436Z] > return super().execute(query, params)
[2024-11-23T00:19:49.436Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <tests.test_generics.TestInstanceView testMethod=test_put_to_filtered_out_instance>
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def setUp(self):
[2024-11-23T00:19:49.436Z] """
[2024-11-23T00:19:49.436Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.436Z] """
[2024-11-23T00:19:49.436Z] items = ['foo', 'bar', 'baz', 'filtered out']
[2024-11-23T00:19:49.436Z] for item in items:
[2024-11-23T00:19:49.436Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] tests/test_generics.py:183:
[2024-11-23T00:19:49.436Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.436Z] self.save_base(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.436Z] updated = self._save_table(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.436Z] results = self._do_insert(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.436Z] return manager._insert(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.436Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.436Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.436Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.436Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.436Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.436Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.436Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.436Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.436Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c846450>
[2024-11-23T00:19:49.436Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] return super().execute(query)
[2024-11-23T00:19:49.436Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.436Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.436Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.436Z] > return super().execute(query, params)
[2024-11-23T00:19:49.436Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.436Z] ___________ TestOverriddenGetObject.test_overridden_get_object_view ____________
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c24c0b0>
[2024-11-23T00:19:49.436Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c24c0b0>})
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.436Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.436Z] # ever set during testing).
[2024-11-23T00:19:49.436Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.436Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.436Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.436Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] # params default might be backend specific.
[2024-11-23T00:19:49.436Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.436Z] else:
[2024-11-23T00:19:49.436Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.436Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.436Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.436Z] params = ('foo',)
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.436Z] if params is None:
[2024-11-23T00:19:49.436Z] return super().execute(query)
[2024-11-23T00:19:49.436Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.436Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.436Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.436Z] > return super().execute(query, params)
[2024-11-23T00:19:49.436Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] self = <tests.test_generics.TestOverriddenGetObject testMethod=test_overridden_get_object_view>
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] def setUp(self):
[2024-11-23T00:19:49.436Z] """
[2024-11-23T00:19:49.436Z] Create 3 BasicModel instances.
[2024-11-23T00:19:49.436Z] """
[2024-11-23T00:19:49.436Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.436Z] for item in items:
[2024-11-23T00:19:49.436Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.436Z]
[2024-11-23T00:19:49.436Z] tests/test_generics.py:351:
[2024-11-23T00:19:49.437Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.437Z] self.save_base(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.437Z] updated = self._save_table(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.437Z] results = self._do_insert(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.437Z] return manager._insert(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.437Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.437Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.437Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.437Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.437Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.437Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.437Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.437Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.437Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c3796d0>
[2024-11-23T00:19:49.437Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.437Z] params = ('foo',)
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.437Z] if params is None:
[2024-11-23T00:19:49.437Z] return super().execute(query)
[2024-11-23T00:19:49.437Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.437Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.437Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.437Z] > return super().execute(query, params)
[2024-11-23T00:19:49.437Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.437Z] _ TestCreateModelWithAutoNowAddField.test_create_model_with_auto_now_add_field _
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c20f110>
[2024-11-23T00:19:49.437Z] sql = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (%s, %s, %s) RETURNING "tests_comment"."id"'
[2024-11-23T00:19:49.437Z] params = ('foobar at example.com', 'foobar', '2024-11-23 00:18:51.974872')
[2024-11-23T00:19:49.437Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c20f110>})
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.437Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.437Z] # ever set during testing).
[2024-11-23T00:19:49.437Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.437Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.437Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.437Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.437Z] if params is None:
[2024-11-23T00:19:49.437Z] # params default might be backend specific.
[2024-11-23T00:19:49.437Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.437Z] else:
[2024-11-23T00:19:49.437Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.437Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523140>
[2024-11-23T00:19:49.437Z] query = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (?, ?, ?) RETURNING "tests_comment"."id"'
[2024-11-23T00:19:49.437Z] params = ('foobar at example.com', 'foobar', '2024-11-23 00:18:51.974872')
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.437Z] if params is None:
[2024-11-23T00:19:49.437Z] return super().execute(query)
[2024-11-23T00:19:49.437Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.437Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.437Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.437Z] > return super().execute(query, params)
[2024-11-23T00:19:49.437Z] E sqlite3.OperationalError: no such table: tests_comment
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <tests.test_generics.TestCreateModelWithAutoNowAddField testMethod=test_create_model_with_auto_now_add_field>
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def test_create_model_with_auto_now_add_field(self):
[2024-11-23T00:19:49.437Z] """
[2024-11-23T00:19:49.437Z] Regression test for #285
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] https://github.com/encode/django-rest-framework/issues/285
[2024-11-23T00:19:49.437Z] """
[2024-11-23T00:19:49.437Z] data = {'email': 'foobar at example.com', 'content': 'foobar'}
[2024-11-23T00:19:49.437Z] request = factory.post('/', data, format='json')
[2024-11-23T00:19:49.437Z] > response = self.view(request).render()
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] tests/test_generics.py:407:
[2024-11-23T00:19:49.437Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.437Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.437Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.437Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.437Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.437Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.437Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.437Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.437Z] raise exc
[2024-11-23T00:19:49.437Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.437Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.437Z] rest_framework/generics.py:246: in post
[2024-11-23T00:19:49.437Z] return self.create(request, *args, **kwargs)
[2024-11-23T00:19:49.437Z] rest_framework/mixins.py:19: in create
[2024-11-23T00:19:49.437Z] self.perform_create(serializer)
[2024-11-23T00:19:49.437Z] rest_framework/mixins.py:24: in perform_create
[2024-11-23T00:19:49.437Z] serializer.save()
[2024-11-23T00:19:49.437Z] rest_framework/serializers.py:208: in save
[2024-11-23T00:19:49.437Z] self.instance = self.create(validated_data)
[2024-11-23T00:19:49.437Z] rest_framework/serializers.py:989: in create
[2024-11-23T00:19:49.437Z] instance = ModelClass._default_manager.create(**validated_data)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.437Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.437Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.437Z] self.save_base(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.437Z] updated = self._save_table(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.437Z] results = self._do_insert(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.437Z] return manager._insert(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.437Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.437Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.437Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.437Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.437Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.437Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.437Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.437Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.437Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523140>
[2024-11-23T00:19:49.437Z] query = 'INSERT INTO "tests_comment" ("email", "content", "created") VALUES (?, ?, ?) RETURNING "tests_comment"."id"'
[2024-11-23T00:19:49.437Z] params = ('foobar at example.com', 'foobar', '2024-11-23 00:18:51.974872')
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.437Z] if params is None:
[2024-11-23T00:19:49.437Z] return super().execute(query)
[2024-11-23T00:19:49.437Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.437Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.437Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.437Z] > return super().execute(query, params)
[2024-11-23T00:19:49.437Z] E django.db.utils.OperationalError: no such table: tests_comment
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.437Z] ________________ TestM2MBrowsableAPI.test_m2m_in_browsable_api _________________
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c20fdd0>
[2024-11-23T00:19:49.437Z] sql = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"'
[2024-11-23T00:19:49.437Z] params = ()
[2024-11-23T00:19:49.437Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c20fdd0>})
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.437Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.437Z] # ever set during testing).
[2024-11-23T00:19:49.437Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.437Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.437Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.437Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.437Z] if params is None:
[2024-11-23T00:19:49.437Z] # params default might be backend specific.
[2024-11-23T00:19:49.437Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.437Z] else:
[2024-11-23T00:19:49.437Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.437Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521fd0>
[2024-11-23T00:19:49.437Z] query = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"'
[2024-11-23T00:19:49.437Z] params = ()
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.437Z] if params is None:
[2024-11-23T00:19:49.437Z] return super().execute(query)
[2024-11-23T00:19:49.437Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.437Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.437Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.437Z] > return super().execute(query, params)
[2024-11-23T00:19:49.437Z] E sqlite3.OperationalError: no such table: tests_classa
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.437Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.437Z]
[2024-11-23T00:19:49.438Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <tests.test_generics.TestM2MBrowsableAPI testMethod=test_m2m_in_browsable_api>
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def test_m2m_in_browsable_api(self):
[2024-11-23T00:19:49.438Z] """
[2024-11-23T00:19:49.438Z] Test for particularly ugly regression with m2m in browsable API
[2024-11-23T00:19:49.438Z] """
[2024-11-23T00:19:49.438Z] request = factory.get('/', HTTP_ACCEPT='text/html')
[2024-11-23T00:19:49.438Z] view = ExampleView().as_view()
[2024-11-23T00:19:49.438Z] > response = view(request).render()
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] tests/test_generics.py:445:
[2024-11-23T00:19:49.438Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.438Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.438Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.438Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.438Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.438Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.438Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.438Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.438Z] raise exc
[2024-11-23T00:19:49.438Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.438Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.438Z] rest_framework/generics.py:243: in get
[2024-11-23T00:19:49.438Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.438Z] rest_framework/mixins.py:46: in list
[2024-11-23T00:19:49.438Z] return Response(serializer.data)
[2024-11-23T00:19:49.438Z] rest_framework/serializers.py:795: in data
[2024-11-23T00:19:49.438Z] ret = super().data
[2024-11-23T00:19:49.438Z] rest_framework/serializers.py:249: in data
[2024-11-23T00:19:49.438Z] self._data = self.to_representation(self.instance)
[2024-11-23T00:19:49.438Z] rest_framework/serializers.py:714: in to_representation
[2024-11-23T00:19:49.438Z] self.child.to_representation(item) for item in iterable
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:400: in __iter__
[2024-11-23T00:19:49.438Z] self._fetch_all()
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1928: in _fetch_all
[2024-11-23T00:19:49.438Z] self._result_cache = list(self._iterable_class(self))
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:91: in __iter__
[2024-11-23T00:19:49.438Z] results = compiler.execute_sql(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1574: in execute_sql
[2024-11-23T00:19:49.438Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.438Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.438Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.438Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.438Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.438Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.438Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521fd0>
[2024-11-23T00:19:49.438Z] query = 'SELECT "tests_classa"."id", "tests_classa"."name" FROM "tests_classa"'
[2024-11-23T00:19:49.438Z] params = ()
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.438Z] if params is None:
[2024-11-23T00:19:49.438Z] return super().execute(query)
[2024-11-23T00:19:49.438Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.438Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.438Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.438Z] > return super().execute(query, params)
[2024-11-23T00:19:49.438Z] E django.db.utils.OperationalError: no such table: tests_classa
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.438Z] _ TestFilterBackendAppliedToViews.test_dynamic_serializer_form_in_browsable_api _
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1c4110>
[2024-11-23T00:19:49.438Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.438Z] params = ('foo',)
[2024-11-23T00:19:49.438Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1c4110>})
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.438Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.438Z] # ever set during testing).
[2024-11-23T00:19:49.438Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.438Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.438Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.438Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.438Z] if params is None:
[2024-11-23T00:19:49.438Z] # params default might be backend specific.
[2024-11-23T00:19:49.438Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.438Z] else:
[2024-11-23T00:19:49.438Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.438Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521be0>
[2024-11-23T00:19:49.438Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.438Z] params = ('foo',)
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.438Z] if params is None:
[2024-11-23T00:19:49.438Z] return super().execute(query)
[2024-11-23T00:19:49.438Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.438Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.438Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.438Z] > return super().execute(query, params)
[2024-11-23T00:19:49.438Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_dynamic_serializer_form_in_browsable_api>
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def setUp(self):
[2024-11-23T00:19:49.438Z] """
[2024-11-23T00:19:49.438Z] Create 3 BasicModel instances to filter on.
[2024-11-23T00:19:49.438Z] """
[2024-11-23T00:19:49.438Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.438Z] for item in items:
[2024-11-23T00:19:49.438Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] tests/test_generics.py:489:
[2024-11-23T00:19:49.438Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.438Z] self.save_base(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.438Z] updated = self._save_table(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.438Z] results = self._do_insert(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.438Z] return manager._insert(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.438Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.438Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.438Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.438Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.438Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.438Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.438Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.438Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.438Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521be0>
[2024-11-23T00:19:49.438Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.438Z] params = ('foo',)
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.438Z] if params is None:
[2024-11-23T00:19:49.438Z] return super().execute(query)
[2024-11-23T00:19:49.438Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.438Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.438Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.438Z] > return super().execute(query, params)
[2024-11-23T00:19:49.438Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.438Z] _ TestFilterBackendAppliedToViews.test_get_instance_view_filters_out_name_with_filter_backend _
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1c5a30>
[2024-11-23T00:19:49.438Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.438Z] params = ('foo',)
[2024-11-23T00:19:49.438Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1c5a30>})
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.438Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.438Z] # ever set during testing).
[2024-11-23T00:19:49.438Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.438Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.438Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.438Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.438Z] if params is None:
[2024-11-23T00:19:49.438Z] # params default might be backend specific.
[2024-11-23T00:19:49.438Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.438Z] else:
[2024-11-23T00:19:49.438Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.438Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.438Z]
[2024-11-23T00:19:49.438Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.439Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] return super().execute(query)
[2024-11-23T00:19:49.439Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.439Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.439Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.439Z] > return super().execute(query, params)
[2024-11-23T00:19:49.439Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_instance_view_filters_out_name_with_filter_backend>
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def setUp(self):
[2024-11-23T00:19:49.439Z] """
[2024-11-23T00:19:49.439Z] Create 3 BasicModel instances to filter on.
[2024-11-23T00:19:49.439Z] """
[2024-11-23T00:19:49.439Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.439Z] for item in items:
[2024-11-23T00:19:49.439Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] tests/test_generics.py:489:
[2024-11-23T00:19:49.439Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.439Z] self.save_base(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.439Z] updated = self._save_table(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.439Z] results = self._do_insert(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.439Z] return manager._insert(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.439Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.439Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.439Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.439Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.439Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.439Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.439Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.439Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.439Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.439Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] return super().execute(query)
[2024-11-23T00:19:49.439Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.439Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.439Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.439Z] > return super().execute(query, params)
[2024-11-23T00:19:49.439Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.439Z] _ TestFilterBackendAppliedToViews.test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it _
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1c60f0>
[2024-11-23T00:19:49.439Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1c60f0>})
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.439Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.439Z] # ever set during testing).
[2024-11-23T00:19:49.439Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.439Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.439Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.439Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] # params default might be backend specific.
[2024-11-23T00:19:49.439Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.439Z] else:
[2024-11-23T00:19:49.439Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.439Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523770>
[2024-11-23T00:19:49.439Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] return super().execute(query)
[2024-11-23T00:19:49.439Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.439Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.439Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.439Z] > return super().execute(query, params)
[2024-11-23T00:19:49.439Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it>
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def setUp(self):
[2024-11-23T00:19:49.439Z] """
[2024-11-23T00:19:49.439Z] Create 3 BasicModel instances to filter on.
[2024-11-23T00:19:49.439Z] """
[2024-11-23T00:19:49.439Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.439Z] for item in items:
[2024-11-23T00:19:49.439Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] tests/test_generics.py:489:
[2024-11-23T00:19:49.439Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.439Z] self.save_base(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.439Z] updated = self._save_table(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.439Z] results = self._do_insert(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.439Z] return manager._insert(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.439Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.439Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.439Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.439Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.439Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.439Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.439Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.439Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.439Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523770>
[2024-11-23T00:19:49.439Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] return super().execute(query)
[2024-11-23T00:19:49.439Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.439Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.439Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.439Z] > return super().execute(query, params)
[2024-11-23T00:19:49.439Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.439Z] _ TestFilterBackendAppliedToViews.test_get_root_view_filters_by_name_with_filter_backend _
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c22c770>
[2024-11-23T00:19:49.439Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c22c770>})
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.439Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.439Z] # ever set during testing).
[2024-11-23T00:19:49.439Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.439Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.439Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.439Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] # params default might be backend specific.
[2024-11-23T00:19:49.439Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.439Z] else:
[2024-11-23T00:19:49.439Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.439Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.439Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.439Z] params = ('foo',)
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.439Z] if params is None:
[2024-11-23T00:19:49.439Z] return super().execute(query)
[2024-11-23T00:19:49.439Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.439Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.439Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.439Z] > return super().execute(query, params)
[2024-11-23T00:19:49.439Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_root_view_filters_by_name_with_filter_backend>
[2024-11-23T00:19:49.439Z]
[2024-11-23T00:19:49.439Z] def setUp(self):
[2024-11-23T00:19:49.439Z] """
[2024-11-23T00:19:49.439Z] Create 3 BasicModel instances to filter on.
[2024-11-23T00:19:49.439Z] """
[2024-11-23T00:19:49.439Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.440Z] for item in items:
[2024-11-23T00:19:49.440Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] tests/test_generics.py:489:
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.440Z] self.save_base(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.440Z] updated = self._save_table(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.440Z] results = self._do_insert(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.440Z] return manager._insert(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.440Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.440Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.440Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.440Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.440Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.440Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.440Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.440Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.440Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.440Z] params = ('foo',)
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.440Z] if params is None:
[2024-11-23T00:19:49.440Z] return super().execute(query)
[2024-11-23T00:19:49.440Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.440Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.440Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.440Z] > return super().execute(query, params)
[2024-11-23T00:19:49.440Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.440Z] _ TestFilterBackendAppliedToViews.test_get_root_view_filters_out_all_models_with_exclusive_filter_backend _
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c22d070>
[2024-11-23T00:19:49.440Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.440Z] params = ('foo',)
[2024-11-23T00:19:49.440Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c22d070>})
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.440Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.440Z] # ever set during testing).
[2024-11-23T00:19:49.440Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.440Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.440Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.440Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.440Z] if params is None:
[2024-11-23T00:19:49.440Z] # params default might be backend specific.
[2024-11-23T00:19:49.440Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.440Z] else:
[2024-11-23T00:19:49.440Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523ec0>
[2024-11-23T00:19:49.440Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.440Z] params = ('foo',)
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.440Z] if params is None:
[2024-11-23T00:19:49.440Z] return super().execute(query)
[2024-11-23T00:19:49.440Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.440Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.440Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.440Z] > return super().execute(query, params)
[2024-11-23T00:19:49.440Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <tests.test_generics.TestFilterBackendAppliedToViews testMethod=test_get_root_view_filters_out_all_models_with_exclusive_filter_backend>
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def setUp(self):
[2024-11-23T00:19:49.440Z] """
[2024-11-23T00:19:49.440Z] Create 3 BasicModel instances to filter on.
[2024-11-23T00:19:49.440Z] """
[2024-11-23T00:19:49.440Z] items = ['foo', 'bar', 'baz']
[2024-11-23T00:19:49.440Z] for item in items:
[2024-11-23T00:19:49.440Z] > BasicModel(text=item).save()
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] tests/test_generics.py:489:
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.440Z] self.save_base(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.440Z] updated = self._save_table(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.440Z] results = self._do_insert(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.440Z] return manager._insert(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.440Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.440Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.440Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.440Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.440Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.440Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.440Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.440Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523ec0>
[2024-11-23T00:19:49.440Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.440Z] params = ('foo',)
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.440Z] if params is None:
[2024-11-23T00:19:49.440Z] return super().execute(query)
[2024-11-23T00:19:49.440Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.440Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.440Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.440Z] > return super().execute(query, params)
[2024-11-23T00:19:49.440Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.440Z] ___ GetObjectOr404Tests.test_get_object_or_404_with_invalid_string_for_uuid ____
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1c59d0>
[2024-11-23T00:19:49.440Z] sql = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (%s, %s)'
[2024-11-23T00:19:49.440Z] params = ('437139e29e7d40c99f9225780c69d883', 'bar')
[2024-11-23T00:19:49.440Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1c59d0>})
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.440Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.440Z] # ever set during testing).
[2024-11-23T00:19:49.440Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.440Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.440Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.440Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.440Z] if params is None:
[2024-11-23T00:19:49.440Z] # params default might be backend specific.
[2024-11-23T00:19:49.440Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.440Z] else:
[2024-11-23T00:19:49.440Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523a40>
[2024-11-23T00:19:49.440Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T00:19:49.440Z] params = ('437139e29e7d40c99f9225780c69d883', 'bar')
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.440Z] if params is None:
[2024-11-23T00:19:49.440Z] return super().execute(query)
[2024-11-23T00:19:49.440Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.440Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.440Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.440Z] > return super().execute(query, params)
[2024-11-23T00:19:49.440Z] E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] self = <tests.test_generics.GetObjectOr404Tests testMethod=test_get_object_or_404_with_invalid_string_for_uuid>
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] def setUp(self):
[2024-11-23T00:19:49.440Z] super().setUp()
[2024-11-23T00:19:49.440Z] > self.uuid_object = UUIDForeignKeyTarget.objects.create(name='bar')
[2024-11-23T00:19:49.440Z]
[2024-11-23T00:19:49.440Z] tests/test_generics.py:662:
[2024-11-23T00:19:49.440Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.440Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.440Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.440Z] self.save_base(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.440Z] updated = self._save_table(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.440Z] results = self._do_insert(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.440Z] return manager._insert(
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.440Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.440Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.440Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.441Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.441Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.441Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.441Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.441Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.441Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.441Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523a40>
[2024-11-23T00:19:49.441Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T00:19:49.441Z] params = ('437139e29e7d40c99f9225780c69d883', 'bar')
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.441Z] if params is None:
[2024-11-23T00:19:49.441Z] return super().execute(query)
[2024-11-23T00:19:49.441Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.441Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.441Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.441Z] > return super().execute(query, params)
[2024-11-23T00:19:49.441Z] E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.441Z] __________ GetObjectOr404Tests.test_get_object_or_404_with_valid_uuid __________
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c22d130>
[2024-11-23T00:19:49.441Z] sql = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (%s, %s)'
[2024-11-23T00:19:49.441Z] params = ('788c87721f5f4b71ba0a238bb25e43b7', 'bar')
[2024-11-23T00:19:49.441Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c22d130>})
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.441Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.441Z] # ever set during testing).
[2024-11-23T00:19:49.441Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.441Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.441Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.441Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.441Z] if params is None:
[2024-11-23T00:19:49.441Z] # params default might be backend specific.
[2024-11-23T00:19:49.441Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.441Z] else:
[2024-11-23T00:19:49.441Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.441Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.441Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T00:19:49.441Z] params = ('788c87721f5f4b71ba0a238bb25e43b7', 'bar')
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.441Z] if params is None:
[2024-11-23T00:19:49.441Z] return super().execute(query)
[2024-11-23T00:19:49.441Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.441Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.441Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.441Z] > return super().execute(query, params)
[2024-11-23T00:19:49.441Z] E sqlite3.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <tests.test_generics.GetObjectOr404Tests testMethod=test_get_object_or_404_with_valid_uuid>
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def setUp(self):
[2024-11-23T00:19:49.441Z] super().setUp()
[2024-11-23T00:19:49.441Z] > self.uuid_object = UUIDForeignKeyTarget.objects.create(name='bar')
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] tests/test_generics.py:662:
[2024-11-23T00:19:49.441Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.441Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.441Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.441Z] self.save_base(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.441Z] updated = self._save_table(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.441Z] results = self._do_insert(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.441Z] return manager._insert(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.441Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.441Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.441Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.441Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.441Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.441Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.441Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.441Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.441Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c37be30>
[2024-11-23T00:19:49.441Z] query = 'INSERT INTO "tests_uuidforeignkeytarget" ("uuid", "name") VALUES (?, ?)'
[2024-11-23T00:19:49.441Z] params = ('788c87721f5f4b71ba0a238bb25e43b7', 'bar')
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.441Z] if params is None:
[2024-11-23T00:19:49.441Z] return super().execute(query)
[2024-11-23T00:19:49.441Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.441Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.441Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.441Z] > return super().execute(query, params)
[2024-11-23T00:19:49.441Z] E django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.441Z] ______________ TemplateHTMLRendererTests.test_not_found_html_view ______________
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererTests testMethod=test_not_found_html_view>
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def test_not_found_html_view(self):
[2024-11-23T00:19:49.441Z] response = self.client.get('/not_found')
[2024-11-23T00:19:49.441Z] > self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
[2024-11-23T00:19:49.441Z] E AssertionError: 400 != 404
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] tests/test_htmlrenderer.py:84: AssertionError
[2024-11-23T00:19:49.441Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.441Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.441Z] Traceback (most recent call last):
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.441Z] response = get_response(request)
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.441Z] response = self.process_request(request)
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.441Z] host = request.get_host()
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.441Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.441Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.441Z] WARNING django.request:log.py:248 Bad Request: /not_found
[2024-11-23T00:19:49.441Z] __________ TemplateHTMLRendererTests.test_permission_denied_html_view __________
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererTests testMethod=test_permission_denied_html_view>
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def test_permission_denied_html_view(self):
[2024-11-23T00:19:49.441Z] response = self.client.get('/permission_denied')
[2024-11-23T00:19:49.441Z] > self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
[2024-11-23T00:19:49.441Z] E AssertionError: 400 != 403
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] tests/test_htmlrenderer.py:90: AssertionError
[2024-11-23T00:19:49.441Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.441Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.441Z] Traceback (most recent call last):
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.441Z] response = get_response(request)
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.441Z] response = self.process_request(request)
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.441Z] host = request.get_host()
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.441Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.441Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.441Z] WARNING django.request:log.py:248 Bad Request: /permission_denied
[2024-11-23T00:19:49.441Z] _______________ TemplateHTMLRendererTests.test_simple_html_view ________________
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererTests testMethod=test_simple_html_view>
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] def test_simple_html_view(self):
[2024-11-23T00:19:49.441Z] response = self.client.get('/')
[2024-11-23T00:19:49.441Z] > self.assertContains(response, "example: foobar")
[2024-11-23T00:19:49.441Z]
[2024-11-23T00:19:49.441Z] tests/test_htmlrenderer.py:79:
[2024-11-23T00:19:49.441Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:609: in assertContains
[2024-11-23T00:19:49.441Z] text_repr, real_count, msg_prefix, content_repr = self._assert_contains(
[2024-11-23T00:19:49.441Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:571: in _assert_contains
[2024-11-23T00:19:49.441Z] self.assertEqual(
[2024-11-23T00:19:49.441Z] E AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200)
[2024-11-23T00:19:49.441Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.441Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.441Z] Traceback (most recent call last):
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.441Z] response = get_response(request)
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.441Z] response = self.process_request(request)
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.441Z] host = request.get_host()
[2024-11-23T00:19:49.441Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.441Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.442Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.442Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.442Z] __ TemplateHTMLRendererExceptionTests.test_not_found_html_view_with_template ___
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererExceptionTests testMethod=test_not_found_html_view_with_template>
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def test_not_found_html_view_with_template(self):
[2024-11-23T00:19:49.442Z] response = self.client.get('/not_found')
[2024-11-23T00:19:49.442Z] > self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
[2024-11-23T00:19:49.442Z] E AssertionError: 400 != 404
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] tests/test_htmlrenderer.py:154: AssertionError
[2024-11-23T00:19:49.442Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.442Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.442Z] Traceback (most recent call last):
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.442Z] response = get_response(request)
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.442Z] response = self.process_request(request)
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.442Z] host = request.get_host()
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.442Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.442Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.442Z] WARNING django.request:log.py:248 Bad Request: /not_found
[2024-11-23T00:19:49.442Z] _ TemplateHTMLRendererExceptionTests.test_permission_denied_html_view_with_template _
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <tests.test_htmlrenderer.TemplateHTMLRendererExceptionTests testMethod=test_permission_denied_html_view_with_template>
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def test_permission_denied_html_view_with_template(self):
[2024-11-23T00:19:49.442Z] response = self.client.get('/permission_denied')
[2024-11-23T00:19:49.442Z] > self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
[2024-11-23T00:19:49.442Z] E AssertionError: 400 != 403
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] tests/test_htmlrenderer.py:161: AssertionError
[2024-11-23T00:19:49.442Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.442Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.442Z] Traceback (most recent call last):
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.442Z] response = get_response(request)
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.442Z] response = self.process_request(request)
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.442Z] host = request.get_host()
[2024-11-23T00:19:49.442Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.442Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.442Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.442Z] WARNING django.request:log.py:248 Bad Request: /permission_denied
[2024-11-23T00:19:49.442Z] _______________ TestLazyHyperlinkNames.test_lazy_hyperlink_names _______________
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1cb9b0>
[2024-11-23T00:19:49.442Z] sql = 'INSERT INTO "tests_example" ("text") VALUES (%s) RETURNING "tests_example"."id"'
[2024-11-23T00:19:49.442Z] params = ('foo',)
[2024-11-23T00:19:49.442Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1cb9b0>})
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.442Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.442Z] # ever set during testing).
[2024-11-23T00:19:49.442Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.442Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.442Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.442Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.442Z] if params is None:
[2024-11-23T00:19:49.442Z] # params default might be backend specific.
[2024-11-23T00:19:49.442Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.442Z] else:
[2024-11-23T00:19:49.442Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.442Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523920>
[2024-11-23T00:19:49.442Z] query = 'INSERT INTO "tests_example" ("text") VALUES (?) RETURNING "tests_example"."id"'
[2024-11-23T00:19:49.442Z] params = ('foo',)
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.442Z] if params is None:
[2024-11-23T00:19:49.442Z] return super().execute(query)
[2024-11-23T00:19:49.442Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.442Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.442Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.442Z] > return super().execute(query, params)
[2024-11-23T00:19:49.442Z] E sqlite3.OperationalError: no such table: tests_example
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <tests.test_lazy_hyperlinks.TestLazyHyperlinkNames testMethod=test_lazy_hyperlink_names>
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def setUp(self):
[2024-11-23T00:19:49.442Z] > self.example = Example.objects.create(text='foo')
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] tests/test_lazy_hyperlinks.py:39:
[2024-11-23T00:19:49.442Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.442Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.442Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.442Z] self.save_base(
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.442Z] updated = self._save_table(
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.442Z] results = self._do_insert(
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.442Z] return manager._insert(
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.442Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.442Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.442Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.442Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.442Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.442Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.442Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.442Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.442Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523920>
[2024-11-23T00:19:49.442Z] query = 'INSERT INTO "tests_example" ("text") VALUES (?) RETURNING "tests_example"."id"'
[2024-11-23T00:19:49.442Z] params = ('foo',)
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.442Z] if params is None:
[2024-11-23T00:19:49.442Z] return super().execute(query)
[2024-11-23T00:19:49.442Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.442Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.442Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.442Z] > return super().execute(query, params)
[2024-11-23T00:19:49.442Z] E django.db.utils.OperationalError: no such table: tests_example
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.442Z] ____________ TestSimpleMetadataFieldInfo.test_related_field_choices ____________
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c901a30>
[2024-11-23T00:19:49.442Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.442Z] params = ('',)
[2024-11-23T00:19:49.442Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c901a30>})
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.442Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.442Z] # ever set during testing).
[2024-11-23T00:19:49.442Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.442Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.442Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.442Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.442Z] if params is None:
[2024-11-23T00:19:49.442Z] # params default might be backend specific.
[2024-11-23T00:19:49.442Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.442Z] else:
[2024-11-23T00:19:49.442Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.442Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523020>
[2024-11-23T00:19:49.442Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.442Z] params = ('',)
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.442Z] if params is None:
[2024-11-23T00:19:49.442Z] return super().execute(query)
[2024-11-23T00:19:49.442Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.442Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.442Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.442Z] > return super().execute(query, params)
[2024-11-23T00:19:49.442Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.442Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.442Z]
[2024-11-23T00:19:49.443Z] self = <tests.test_metadata.TestSimpleMetadataFieldInfo testMethod=test_related_field_choices>
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def test_related_field_choices(self):
[2024-11-23T00:19:49.443Z] options = metadata.SimpleMetadata()
[2024-11-23T00:19:49.443Z] > BasicModel.objects.create()
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] tests/test_metadata.py:320:
[2024-11-23T00:19:49.443Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.443Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.443Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.443Z] self.save_base(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.443Z] updated = self._save_table(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.443Z] results = self._do_insert(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.443Z] return manager._insert(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.443Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.443Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.443Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.443Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.443Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.443Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.443Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.443Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.443Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523020>
[2024-11-23T00:19:49.443Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.443Z] params = ('',)
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.443Z] if params is None:
[2024-11-23T00:19:49.443Z] return super().execute(query)
[2024-11-23T00:19:49.443Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.443Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.443Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.443Z] > return super().execute(query, params)
[2024-11-23T00:19:49.443Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.443Z] ___ TestMiddleware.test_middleware_can_access_user_when_processing_response ____
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c87ddf0>
[2024-11-23T00:19:49.443Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.443Z] params = ('md5$JU3xUCZe3R3QRU8cejbFML$01e6cc49254633e456bdfc828464b1eb', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.443Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c87ddf0>})
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.443Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.443Z] # ever set during testing).
[2024-11-23T00:19:49.443Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.443Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.443Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.443Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.443Z] if params is None:
[2024-11-23T00:19:49.443Z] # params default might be backend specific.
[2024-11-23T00:19:49.443Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.443Z] else:
[2024-11-23T00:19:49.443Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.443Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520560>
[2024-11-23T00:19:49.443Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.443Z] params = ('md5$JU3xUCZe3R3QRU8cejbFML$01e6cc49254633e456bdfc828464b1eb', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.443Z] if params is None:
[2024-11-23T00:19:49.443Z] return super().execute(query)
[2024-11-23T00:19:49.443Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.443Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.443Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.443Z] > return super().execute(query, params)
[2024-11-23T00:19:49.443Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <tests.test_middleware.TestMiddleware testMethod=test_middleware_can_access_user_when_processing_response>
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] @override_settings(MIDDLEWARE=('tests.test_middleware.RequestUserMiddleware',))
[2024-11-23T00:19:49.443Z] def test_middleware_can_access_user_when_processing_response(self):
[2024-11-23T00:19:49.443Z] > user = User.objects.create_user('john', 'john at example.com', 'password')
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] tests/test_middleware.py:101:
[2024-11-23T00:19:49.443Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.443Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.443Z] user.save(using=self._db)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.443Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.443Z] self.save_base(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.443Z] updated = self._save_table(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.443Z] results = self._do_insert(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.443Z] return manager._insert(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.443Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.443Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.443Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.443Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.443Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.443Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.443Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.443Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.443Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c520560>
[2024-11-23T00:19:49.443Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.443Z] params = ('md5$JU3xUCZe3R3QRU8cejbFML$01e6cc49254633e456bdfc828464b1eb', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.443Z] if params is None:
[2024-11-23T00:19:49.443Z] return super().execute(query)
[2024-11-23T00:19:49.443Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.443Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.443Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.443Z] > return super().execute(query, params)
[2024-11-23T00:19:49.443Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.443Z] __________ TestRelationalFieldDisplayValue.test_custom_display_value ___________
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8deff0>
[2024-11-23T00:19:49.443Z] sql = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (%s), (%s), (%s) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T00:19:49.443Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T00:19:49.443Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8deff0>})
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.443Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.443Z] # ever set during testing).
[2024-11-23T00:19:49.443Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.443Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.443Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.443Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.443Z] if params is None:
[2024-11-23T00:19:49.443Z] # params default might be backend specific.
[2024-11-23T00:19:49.443Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.443Z] else:
[2024-11-23T00:19:49.443Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.443Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5234a0>
[2024-11-23T00:19:49.443Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T00:19:49.443Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.443Z] if params is None:
[2024-11-23T00:19:49.443Z] return super().execute(query)
[2024-11-23T00:19:49.443Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.443Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.443Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.443Z] > return super().execute(query, params)
[2024-11-23T00:19:49.443Z] E sqlite3.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] self = <tests.test_model_serializer.TestRelationalFieldDisplayValue testMethod=test_custom_display_value>
[2024-11-23T00:19:49.443Z]
[2024-11-23T00:19:49.443Z] def setUp(self):
[2024-11-23T00:19:49.443Z] > DisplayValueTargetModel.objects.bulk_create([
[2024-11-23T00:19:49.443Z] DisplayValueTargetModel(name='Red'),
[2024-11-23T00:19:49.443Z] DisplayValueTargetModel(name='Yellow'),
[2024-11-23T00:19:49.444Z] DisplayValueTargetModel(name='Green'),
[2024-11-23T00:19:49.444Z] ])
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] tests/test_model_serializer.py:748:
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.444Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:835: in bulk_create
[2024-11-23T00:19:49.444Z] returned_columns = self._batched_insert(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1875: in _batched_insert
[2024-11-23T00:19:49.444Z] self._insert(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.444Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.444Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.444Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.444Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.444Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.444Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.444Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5234a0>
[2024-11-23T00:19:49.444Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T00:19:49.444Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.444Z] if params is None:
[2024-11-23T00:19:49.444Z] return super().execute(query)
[2024-11-23T00:19:49.444Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.444Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.444Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.444Z] > return super().execute(query, params)
[2024-11-23T00:19:49.444Z] E django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.444Z] __________ TestRelationalFieldDisplayValue.test_default_display_value __________
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c86b0b0>
[2024-11-23T00:19:49.444Z] sql = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (%s), (%s), (%s) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T00:19:49.444Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T00:19:49.444Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c86b0b0>})
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.444Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.444Z] # ever set during testing).
[2024-11-23T00:19:49.444Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.444Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.444Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.444Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.444Z] if params is None:
[2024-11-23T00:19:49.444Z] # params default might be backend specific.
[2024-11-23T00:19:49.444Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.444Z] else:
[2024-11-23T00:19:49.444Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521760>
[2024-11-23T00:19:49.444Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T00:19:49.444Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.444Z] if params is None:
[2024-11-23T00:19:49.444Z] return super().execute(query)
[2024-11-23T00:19:49.444Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.444Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.444Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.444Z] > return super().execute(query, params)
[2024-11-23T00:19:49.444Z] E sqlite3.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <tests.test_model_serializer.TestRelationalFieldDisplayValue testMethod=test_default_display_value>
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def setUp(self):
[2024-11-23T00:19:49.444Z] > DisplayValueTargetModel.objects.bulk_create([
[2024-11-23T00:19:49.444Z] DisplayValueTargetModel(name='Red'),
[2024-11-23T00:19:49.444Z] DisplayValueTargetModel(name='Yellow'),
[2024-11-23T00:19:49.444Z] DisplayValueTargetModel(name='Green'),
[2024-11-23T00:19:49.444Z] ])
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] tests/test_model_serializer.py:748:
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.444Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:835: in bulk_create
[2024-11-23T00:19:49.444Z] returned_columns = self._batched_insert(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1875: in _batched_insert
[2024-11-23T00:19:49.444Z] self._insert(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.444Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.444Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.444Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.444Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.444Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.444Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.444Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521760>
[2024-11-23T00:19:49.444Z] query = 'INSERT INTO "tests_displayvaluetargetmodel" ("name") VALUES (?), (?), (?) RETURNING "tests_displayvaluetargetmodel"."id"'
[2024-11-23T00:19:49.444Z] params = ('Red', 'Yellow', 'Green')
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.444Z] if params is None:
[2024-11-23T00:19:49.444Z] return super().execute(query)
[2024-11-23T00:19:49.444Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.444Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.444Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.444Z] > return super().execute(query, params)
[2024-11-23T00:19:49.444Z] E django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.444Z] ________________________ TestIntegration.test_pk_create ________________________
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c06bad0>
[2024-11-23T00:19:49.444Z] sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.444Z] params = ('foreign_key',)
[2024-11-23T00:19:49.444Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c06bad0>})
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.444Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.444Z] # ever set during testing).
[2024-11-23T00:19:49.444Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.444Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.444Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.444Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.444Z] if params is None:
[2024-11-23T00:19:49.444Z] # params default might be backend specific.
[2024-11-23T00:19:49.444Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.444Z] else:
[2024-11-23T00:19:49.444Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523800>
[2024-11-23T00:19:49.444Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.444Z] params = ('foreign_key',)
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.444Z] if params is None:
[2024-11-23T00:19:49.444Z] return super().execute(query)
[2024-11-23T00:19:49.444Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.444Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.444Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.444Z] > return super().execute(query, params)
[2024-11-23T00:19:49.444Z] E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] self = <tests.test_model_serializer.TestIntegration testMethod=test_pk_create>
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] def setUp(self):
[2024-11-23T00:19:49.444Z] > self.foreign_key_target = ForeignKeyTargetModel.objects.create(
[2024-11-23T00:19:49.444Z] name='foreign_key'
[2024-11-23T00:19:49.444Z] )
[2024-11-23T00:19:49.444Z]
[2024-11-23T00:19:49.444Z] tests/test_model_serializer.py:783:
[2024-11-23T00:19:49.444Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.444Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.444Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.444Z] self.save_base(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.444Z] updated = self._save_table(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.444Z] results = self._do_insert(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.444Z] return manager._insert(
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.444Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.444Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.444Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.444Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.444Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.445Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.445Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.445Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.445Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523800>
[2024-11-23T00:19:49.445Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] return super().execute(query)
[2024-11-23T00:19:49.445Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.445Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.445Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.445Z] > return super().execute(query, params)
[2024-11-23T00:19:49.445Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.445Z] _______________________ TestIntegration.test_pk_retrival _______________________
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8df170>
[2024-11-23T00:19:49.445Z] sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8df170>})
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.445Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.445Z] # ever set during testing).
[2024-11-23T00:19:49.445Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.445Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.445Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.445Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] # params default might be backend specific.
[2024-11-23T00:19:49.445Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.445Z] else:
[2024-11-23T00:19:49.445Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521760>
[2024-11-23T00:19:49.445Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] return super().execute(query)
[2024-11-23T00:19:49.445Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.445Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.445Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.445Z] > return super().execute(query, params)
[2024-11-23T00:19:49.445Z] E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <tests.test_model_serializer.TestIntegration testMethod=test_pk_retrival>
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def setUp(self):
[2024-11-23T00:19:49.445Z] > self.foreign_key_target = ForeignKeyTargetModel.objects.create(
[2024-11-23T00:19:49.445Z] name='foreign_key'
[2024-11-23T00:19:49.445Z] )
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] tests/test_model_serializer.py:783:
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.445Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.445Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.445Z] self.save_base(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.445Z] updated = self._save_table(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.445Z] results = self._do_insert(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.445Z] return manager._insert(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.445Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.445Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.445Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.445Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.445Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.445Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.445Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.445Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521760>
[2024-11-23T00:19:49.445Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] return super().execute(query)
[2024-11-23T00:19:49.445Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.445Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.445Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.445Z] > return super().execute(query, params)
[2024-11-23T00:19:49.445Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.445Z] ________________________ TestIntegration.test_pk_update ________________________
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8e5b50>
[2024-11-23T00:19:49.445Z] sql = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (%s) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8e5b50>})
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.445Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.445Z] # ever set during testing).
[2024-11-23T00:19:49.445Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.445Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.445Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.445Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] # params default might be backend specific.
[2024-11-23T00:19:49.445Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.445Z] else:
[2024-11-23T00:19:49.445Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5234a0>
[2024-11-23T00:19:49.445Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] return super().execute(query)
[2024-11-23T00:19:49.445Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.445Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.445Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.445Z] > return super().execute(query, params)
[2024-11-23T00:19:49.445Z] E sqlite3.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <tests.test_model_serializer.TestIntegration testMethod=test_pk_update>
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def setUp(self):
[2024-11-23T00:19:49.445Z] > self.foreign_key_target = ForeignKeyTargetModel.objects.create(
[2024-11-23T00:19:49.445Z] name='foreign_key'
[2024-11-23T00:19:49.445Z] )
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] tests/test_model_serializer.py:783:
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.445Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.445Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.445Z] self.save_base(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.445Z] updated = self._save_table(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.445Z] results = self._do_insert(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.445Z] return manager._insert(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.445Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.445Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.445Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.445Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.445Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.445Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.445Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.445Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.445Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c5234a0>
[2024-11-23T00:19:49.445Z] query = 'INSERT INTO "tests_foreignkeytargetmodel" ("name") VALUES (?) RETURNING "tests_foreignkeytargetmodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('foreign_key',)
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] return super().execute(query)
[2024-11-23T00:19:49.445Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.445Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.445Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.445Z] > return super().execute(query, params)
[2024-11-23T00:19:49.445Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.445Z] _______________________ TestBulkCreate.test_bulk_create ________________________
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8e7950>
[2024-11-23T00:19:49.445Z] sql = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (%s) RETURNING "tests_bulkcreatemodel"."id"'
[2024-11-23T00:19:49.445Z] params = ('a',)
[2024-11-23T00:19:49.445Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8e7950>})
[2024-11-23T00:19:49.445Z]
[2024-11-23T00:19:49.445Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.445Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.445Z] # ever set during testing).
[2024-11-23T00:19:49.445Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.445Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.445Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.445Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.445Z] if params is None:
[2024-11-23T00:19:49.445Z] # params default might be backend specific.
[2024-11-23T00:19:49.445Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.445Z] else:
[2024-11-23T00:19:49.446Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522d50>
[2024-11-23T00:19:49.446Z] query = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (?) RETURNING "tests_bulkcreatemodel"."id"'
[2024-11-23T00:19:49.446Z] params = ('a',)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] return super().execute(query)
[2024-11-23T00:19:49.446Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.446Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.446Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.446Z] > return super().execute(query, params)
[2024-11-23T00:19:49.446Z] E sqlite3.OperationalError: no such table: tests_bulkcreatemodel
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <tests.test_model_serializer.TestBulkCreate testMethod=test_bulk_create>
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def test_bulk_create(self):
[2024-11-23T00:19:49.446Z] class BasicModelSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.446Z] class Meta:
[2024-11-23T00:19:49.446Z] model = BulkCreateModel
[2024-11-23T00:19:49.446Z] fields = ('name',)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] class BulkCreateSerializer(serializers.ListSerializer):
[2024-11-23T00:19:49.446Z] child = BasicModelSerializer()
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] data = [{'name': 'a'}, {'name': 'b'}, {'name': 'c'}]
[2024-11-23T00:19:49.446Z] serializer = BulkCreateSerializer(data=data)
[2024-11-23T00:19:49.446Z] assert serializer.is_valid()
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] # Objects are returned by save().
[2024-11-23T00:19:49.446Z] > instances = serializer.save()
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] tests/test_model_serializer.py:934:
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z] rest_framework/serializers.py:758: in save
[2024-11-23T00:19:49.446Z] self.instance = self.create(validated_data)
[2024-11-23T00:19:49.446Z] rest_framework/serializers.py:731: in create
[2024-11-23T00:19:49.446Z] self.child.create(attrs) for attrs in validated_data
[2024-11-23T00:19:49.446Z] rest_framework/serializers.py:989: in create
[2024-11-23T00:19:49.446Z] instance = ModelClass._default_manager.create(**validated_data)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.446Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.446Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.446Z] self.save_base(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.446Z] updated = self._save_table(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.446Z] results = self._do_insert(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.446Z] return manager._insert(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.446Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.446Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.446Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.446Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.446Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.446Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.446Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.446Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522d50>
[2024-11-23T00:19:49.446Z] query = 'INSERT INTO "tests_bulkcreatemodel" ("name") VALUES (?) RETURNING "tests_bulkcreatemodel"."id"'
[2024-11-23T00:19:49.446Z] params = ('a',)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] return super().execute(query)
[2024-11-23T00:19:49.446Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.446Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.446Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.446Z] > return super().execute(query, params)
[2024-11-23T00:19:49.446Z] E django.db.utils.OperationalError: no such table: tests_bulkcreatemodel
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.446Z] _____________________ Issue2704TestCase.test_queryset_all ______________________
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8e52b0>
[2024-11-23T00:19:49.446Z] sql = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (%s) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T00:19:49.446Z] params = ('abc',)
[2024-11-23T00:19:49.446Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8e52b0>})
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.446Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.446Z] # ever set during testing).
[2024-11-23T00:19:49.446Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.446Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.446Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.446Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] # params default might be backend specific.
[2024-11-23T00:19:49.446Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.446Z] else:
[2024-11-23T00:19:49.446Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cb020>
[2024-11-23T00:19:49.446Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T00:19:49.446Z] params = ('abc',)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] return super().execute(query)
[2024-11-23T00:19:49.446Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.446Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.446Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.446Z] > return super().execute(query, params)
[2024-11-23T00:19:49.446Z] E sqlite3.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <tests.test_model_serializer.Issue2704TestCase testMethod=test_queryset_all>
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def test_queryset_all(self):
[2024-11-23T00:19:49.446Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.446Z] additional_attr = serializers.CharField()
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] class Meta:
[2024-11-23T00:19:49.446Z] model = OneFieldModel
[2024-11-23T00:19:49.446Z] fields = ('char_field', 'additional_attr')
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] > OneFieldModel.objects.create(char_field='abc')
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] tests/test_model_serializer.py:1008:
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.446Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.446Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.446Z] self.save_base(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.446Z] updated = self._save_table(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.446Z] results = self._do_insert(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.446Z] return manager._insert(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.446Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.446Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.446Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.446Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.446Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.446Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.446Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.446Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cb020>
[2024-11-23T00:19:49.446Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T00:19:49.446Z] params = ('abc',)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] return super().execute(query)
[2024-11-23T00:19:49.446Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.446Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.446Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.446Z] > return super().execute(query, params)
[2024-11-23T00:19:49.446Z] E django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.446Z] _____________________ Issue7550TestCase.test_dotted_source _____________________
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8741d0>
[2024-11-23T00:19:49.446Z] sql = 'INSERT INTO "tests_issue7550barmodel" ("id") VALUES (NULL) RETURNING "tests_issue7550barmodel"."id"'
[2024-11-23T00:19:49.446Z] params = ()
[2024-11-23T00:19:49.446Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8741d0>})
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.446Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.446Z] # ever set during testing).
[2024-11-23T00:19:49.446Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.446Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.446Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.446Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] # params default might be backend specific.
[2024-11-23T00:19:49.446Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.446Z] else:
[2024-11-23T00:19:49.446Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523020>
[2024-11-23T00:19:49.446Z] query = 'INSERT INTO "tests_issue7550barmodel" ("id") VALUES (NULL) RETURNING "tests_issue7550barmodel"."id"'
[2024-11-23T00:19:49.446Z] params = ()
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.446Z] if params is None:
[2024-11-23T00:19:49.446Z] return super().execute(query)
[2024-11-23T00:19:49.446Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.446Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.446Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.446Z] > return super().execute(query, params)
[2024-11-23T00:19:49.446Z] E sqlite3.OperationalError: no such table: tests_issue7550barmodel
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] self = <tests.test_model_serializer.Issue7550TestCase testMethod=test_dotted_source>
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] def test_dotted_source(self):
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] class _FooSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.446Z] class Meta:
[2024-11-23T00:19:49.446Z] model = Issue7550FooModel
[2024-11-23T00:19:49.446Z] fields = ('id', 'text')
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] class FooSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.446Z] other_foos = _FooSerializer(source='bar.foos', many=True)
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] class Meta:
[2024-11-23T00:19:49.446Z] model = Issue7550BarModel
[2024-11-23T00:19:49.446Z] fields = ('id', 'other_foos')
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] > bar = Issue7550BarModel.objects.create()
[2024-11-23T00:19:49.446Z]
[2024-11-23T00:19:49.446Z] tests/test_model_serializer.py:1051:
[2024-11-23T00:19:49.446Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.446Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.446Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.446Z] self.save_base(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.446Z] updated = self._save_table(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.446Z] results = self._do_insert(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.446Z] return manager._insert(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.446Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.446Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.446Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.446Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.446Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.446Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.446Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.447Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.447Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523020>
[2024-11-23T00:19:49.447Z] query = 'INSERT INTO "tests_issue7550barmodel" ("id") VALUES (NULL) RETURNING "tests_issue7550barmodel"."id"'
[2024-11-23T00:19:49.447Z] params = ()
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] return super().execute(query)
[2024-11-23T00:19:49.447Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.447Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.447Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.447Z] > return super().execute(query, params)
[2024-11-23T00:19:49.447Z] E django.db.utils.OperationalError: no such table: tests_issue7550barmodel
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.447Z] ______________ Issue7550TestCase.test_dotted_source_with_default _______________
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c875790>
[2024-11-23T00:19:49.447Z] sql = 'INSERT INTO "tests_issue7550foomodel" ("text", "bar_id") VALUES (%s, %s) RETURNING "tests_issue7550foomodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc', None)
[2024-11-23T00:19:49.447Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c875790>})
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.447Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.447Z] # ever set during testing).
[2024-11-23T00:19:49.447Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.447Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.447Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.447Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] # params default might be backend specific.
[2024-11-23T00:19:49.447Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.447Z] else:
[2024-11-23T00:19:49.447Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522ba0>
[2024-11-23T00:19:49.447Z] query = 'INSERT INTO "tests_issue7550foomodel" ("text", "bar_id") VALUES (?, ?) RETURNING "tests_issue7550foomodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc', None)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] return super().execute(query)
[2024-11-23T00:19:49.447Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.447Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.447Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.447Z] > return super().execute(query, params)
[2024-11-23T00:19:49.447Z] E sqlite3.OperationalError: no such table: tests_issue7550foomodel
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <tests.test_model_serializer.Issue7550TestCase testMethod=test_dotted_source_with_default>
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def test_dotted_source_with_default(self):
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] class _FooSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.447Z] class Meta:
[2024-11-23T00:19:49.447Z] model = Issue7550FooModel
[2024-11-23T00:19:49.447Z] fields = ('id', 'text')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] class FooSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.447Z] other_foos = _FooSerializer(source='bar.foos', default=[], many=True)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] class Meta:
[2024-11-23T00:19:49.447Z] model = Issue7550FooModel
[2024-11-23T00:19:49.447Z] fields = ('id', 'other_foos')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] > foo = Issue7550FooModel.objects.create(bar=None, text='abc')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] tests/test_model_serializer.py:1083:
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.447Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.447Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.447Z] self.save_base(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.447Z] updated = self._save_table(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.447Z] results = self._do_insert(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.447Z] return manager._insert(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.447Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.447Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.447Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.447Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.447Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.447Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.447Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.447Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c522ba0>
[2024-11-23T00:19:49.447Z] query = 'INSERT INTO "tests_issue7550foomodel" ("text", "bar_id") VALUES (?, ?) RETURNING "tests_issue7550foomodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc', None)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] return super().execute(query)
[2024-11-23T00:19:49.447Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.447Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.447Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.447Z] > return super().execute(query, params)
[2024-11-23T00:19:49.447Z] E django.db.utils.OperationalError: no such table: tests_issue7550foomodel
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.447Z] ___________ Issue3674Test.test_nonID_PK_foreignkey_model_serializer ____________
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c901610>
[2024-11-23T00:19:49.447Z] sql = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (%s) RETURNING "tests_issue3674parentmodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc',)
[2024-11-23T00:19:49.447Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c901610>})
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.447Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.447Z] # ever set during testing).
[2024-11-23T00:19:49.447Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.447Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.447Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.447Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] # params default might be backend specific.
[2024-11-23T00:19:49.447Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.447Z] else:
[2024-11-23T00:19:49.447Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523020>
[2024-11-23T00:19:49.447Z] query = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (?) RETURNING "tests_issue3674parentmodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc',)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] return super().execute(query)
[2024-11-23T00:19:49.447Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.447Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.447Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.447Z] > return super().execute(query, params)
[2024-11-23T00:19:49.447Z] E sqlite3.OperationalError: no such table: tests_issue3674parentmodel
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <tests.test_model_serializer.Issue3674Test testMethod=test_nonID_PK_foreignkey_model_serializer>
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def test_nonID_PK_foreignkey_model_serializer(self):
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] class TestChildModelSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.447Z] class Meta:
[2024-11-23T00:19:49.447Z] model = Issue3674ChildModel
[2024-11-23T00:19:49.447Z] fields = ('value', 'parent')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] class TestParentModelSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.447Z] class Meta:
[2024-11-23T00:19:49.447Z] model = Issue3674ParentModel
[2024-11-23T00:19:49.447Z] fields = ('id', 'title', 'children')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] > parent = Issue3674ParentModel.objects.create(title='abc')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] tests/test_model_serializer.py:1260:
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.447Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.447Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.447Z] self.save_base(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.447Z] updated = self._save_table(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.447Z] results = self._do_insert(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.447Z] return manager._insert(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.447Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.447Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.447Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.447Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.447Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.447Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.447Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.447Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523020>
[2024-11-23T00:19:49.447Z] query = 'INSERT INTO "tests_issue3674parentmodel" ("title") VALUES (?) RETURNING "tests_issue3674parentmodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc',)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] return super().execute(query)
[2024-11-23T00:19:49.447Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.447Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.447Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.447Z] > return super().execute(query, params)
[2024-11-23T00:19:49.447Z] E django.db.utils.OperationalError: no such table: tests_issue3674parentmodel
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.447Z] _______ Issue4897TestCase.test_should_assert_if_writing_readonly_fields ________
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8757f0>
[2024-11-23T00:19:49.447Z] sql = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (%s) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc',)
[2024-11-23T00:19:49.447Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8757f0>})
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.447Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.447Z] # ever set during testing).
[2024-11-23T00:19:49.447Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.447Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.447Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.447Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] # params default might be backend specific.
[2024-11-23T00:19:49.447Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.447Z] else:
[2024-11-23T00:19:49.447Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523ec0>
[2024-11-23T00:19:49.447Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T00:19:49.447Z] params = ('abc',)
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.447Z] if params is None:
[2024-11-23T00:19:49.447Z] return super().execute(query)
[2024-11-23T00:19:49.447Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.447Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.447Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.447Z] > return super().execute(query, params)
[2024-11-23T00:19:49.447Z] E sqlite3.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] self = <tests.test_model_serializer.Issue4897TestCase testMethod=test_should_assert_if_writing_readonly_fields>
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] def test_should_assert_if_writing_readonly_fields(self):
[2024-11-23T00:19:49.447Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.447Z] class Meta:
[2024-11-23T00:19:49.447Z] model = OneFieldModel
[2024-11-23T00:19:49.447Z] fields = ('char_field',)
[2024-11-23T00:19:49.447Z] readonly_fields = fields
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] > obj = OneFieldModel.objects.create(char_field='abc')
[2024-11-23T00:19:49.447Z]
[2024-11-23T00:19:49.447Z] tests/test_model_serializer.py:1281:
[2024-11-23T00:19:49.447Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.447Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.447Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.447Z] self.save_base(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.447Z] updated = self._save_table(
[2024-11-23T00:19:49.447Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.448Z] results = self._do_insert(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.448Z] return manager._insert(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.448Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.448Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.448Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.448Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.448Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.448Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.448Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.448Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c523ec0>
[2024-11-23T00:19:49.448Z] query = 'INSERT INTO "tests_onefieldmodel" ("char_field") VALUES (?) RETURNING "tests_onefieldmodel"."id"'
[2024-11-23T00:19:49.448Z] params = ('abc',)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] return super().execute(query)
[2024-11-23T00:19:49.448Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.448Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.448Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.448Z] > return super().execute(query, params)
[2024-11-23T00:19:49.448Z] E django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.448Z] ______________ Test5004UniqueChoiceField.test_unique_choice_field ______________
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c1167b0>
[2024-11-23T00:19:49.448Z] sql = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (%s) RETURNING "tests_uniquechoicemodel"."id"'
[2024-11-23T00:19:49.448Z] params = ('choice1',)
[2024-11-23T00:19:49.448Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c1167b0>})
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.448Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.448Z] # ever set during testing).
[2024-11-23T00:19:49.448Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.448Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.448Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.448Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] # params default might be backend specific.
[2024-11-23T00:19:49.448Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.448Z] else:
[2024-11-23T00:19:49.448Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521c70>
[2024-11-23T00:19:49.448Z] query = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (?) RETURNING "tests_uniquechoicemodel"."id"'
[2024-11-23T00:19:49.448Z] params = ('choice1',)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] return super().execute(query)
[2024-11-23T00:19:49.448Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.448Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.448Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.448Z] > return super().execute(query, params)
[2024-11-23T00:19:49.448Z] E sqlite3.OperationalError: no such table: tests_uniquechoicemodel
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <tests.test_model_serializer.Test5004UniqueChoiceField testMethod=test_unique_choice_field>
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def test_unique_choice_field(self):
[2024-11-23T00:19:49.448Z] class TestUniqueChoiceSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.448Z] class Meta:
[2024-11-23T00:19:49.448Z] model = UniqueChoiceModel
[2024-11-23T00:19:49.448Z] fields = '__all__'
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] > UniqueChoiceModel.objects.create(name='choice1')
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] tests/test_model_serializer.py:1295:
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.448Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.448Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.448Z] self.save_base(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.448Z] updated = self._save_table(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.448Z] results = self._do_insert(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.448Z] return manager._insert(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.448Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.448Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.448Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.448Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.448Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.448Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.448Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.448Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c521c70>
[2024-11-23T00:19:49.448Z] query = 'INSERT INTO "tests_uniquechoicemodel" ("name") VALUES (?) RETURNING "tests_uniquechoicemodel"."id"'
[2024-11-23T00:19:49.448Z] params = ('choice1',)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] return super().execute(query)
[2024-11-23T00:19:49.448Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.448Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.448Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.448Z] > return super().execute(query, params)
[2024-11-23T00:19:49.448Z] E django.db.utils.OperationalError: no such table: tests_uniquechoicemodel
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.448Z] __________________ TestFieldSource.test_traverse_nullable_fk ___________________
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c874ef0>
[2024-11-23T00:19:49.448Z] sql = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (%s, %s) RETURNING "tests_nestedforeignkeysource"."id"'
[2024-11-23T00:19:49.448Z] params = ('', None)
[2024-11-23T00:19:49.448Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c874ef0>})
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.448Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.448Z] # ever set during testing).
[2024-11-23T00:19:49.448Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.448Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.448Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.448Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] # params default might be backend specific.
[2024-11-23T00:19:49.448Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.448Z] else:
[2024-11-23T00:19:49.448Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8caf90>
[2024-11-23T00:19:49.448Z] query = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (?, ?) RETURNING "tests_nestedforeignkeysource"."id"'
[2024-11-23T00:19:49.448Z] params = ('', None)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] return super().execute(query)
[2024-11-23T00:19:49.448Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.448Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.448Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.448Z] > return super().execute(query, params)
[2024-11-23T00:19:49.448Z] E sqlite3.OperationalError: no such table: tests_nestedforeignkeysource
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <tests.test_model_serializer.TestFieldSource testMethod=test_traverse_nullable_fk>
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def test_traverse_nullable_fk(self):
[2024-11-23T00:19:49.448Z] """
[2024-11-23T00:19:49.448Z] A dotted source with nullable elements uses default when any item in the chain is None. #5849.
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] Similar to model example from test_serializer.py `test_default_for_multiple_dotted_source` method,
[2024-11-23T00:19:49.448Z] but using RelatedField, rather than CharField.
[2024-11-23T00:19:49.448Z] """
[2024-11-23T00:19:49.448Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.448Z] target = serializers.PrimaryKeyRelatedField(
[2024-11-23T00:19:49.448Z] source='target.target', read_only=True, allow_null=True, default=None
[2024-11-23T00:19:49.448Z] )
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] class Meta:
[2024-11-23T00:19:49.448Z] model = NestedForeignKeySource
[2024-11-23T00:19:49.448Z] fields = ('target', )
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] > model = NestedForeignKeySource.objects.create()
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] tests/test_model_serializer.py:1318:
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.448Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.448Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.448Z] self.save_base(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.448Z] updated = self._save_table(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.448Z] results = self._do_insert(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.448Z] return manager._insert(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.448Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.448Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.448Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.448Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.448Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.448Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.448Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.448Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8caf90>
[2024-11-23T00:19:49.448Z] query = 'INSERT INTO "tests_nestedforeignkeysource" ("name", "target_id") VALUES (?, ?) RETURNING "tests_nestedforeignkeysource"."id"'
[2024-11-23T00:19:49.448Z] params = ('', None)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] return super().execute(query)
[2024-11-23T00:19:49.448Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.448Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.448Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.448Z] > return super().execute(query, params)
[2024-11-23T00:19:49.448Z] E django.db.utils.OperationalError: no such table: tests_nestedforeignkeysource
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.448Z] ______________ Issue6110Test.test_model_serializer_custom_manager ______________
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c900a70>
[2024-11-23T00:19:49.448Z] sql = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (%s) RETURNING "tests_issue6110testmodel"."id"'
[2024-11-23T00:19:49.448Z] params = ('test_name',)
[2024-11-23T00:19:49.448Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c900a70>})
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.448Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.448Z] # ever set during testing).
[2024-11-23T00:19:49.448Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.448Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.448Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.448Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] # params default might be backend specific.
[2024-11-23T00:19:49.448Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.448Z] else:
[2024-11-23T00:19:49.448Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.448Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8c9910>
[2024-11-23T00:19:49.448Z] query = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (?) RETURNING "tests_issue6110testmodel"."id"'
[2024-11-23T00:19:49.448Z] params = ('test_name',)
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.448Z] if params is None:
[2024-11-23T00:19:49.448Z] return super().execute(query)
[2024-11-23T00:19:49.448Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.448Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.448Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.448Z] > return super().execute(query, params)
[2024-11-23T00:19:49.448Z] E sqlite3.OperationalError: no such table: tests_issue6110testmodel
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] self = <tests.test_model_serializer.Issue6110Test testMethod=test_model_serializer_custom_manager>
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.448Z] def test_model_serializer_custom_manager(self):
[2024-11-23T00:19:49.448Z] > instance = Issue6110ModelSerializer().create({'name': 'test_name'})
[2024-11-23T00:19:49.448Z]
[2024-11-23T00:19:49.449Z] tests/test_model_serializer.py:1356:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z] rest_framework/serializers.py:989: in create
[2024-11-23T00:19:49.449Z] instance = ModelClass._default_manager.create(**validated_data)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.449Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.449Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.449Z] self.save_base(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.449Z] updated = self._save_table(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.449Z] results = self._do_insert(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.449Z] return manager._insert(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.449Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.449Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.449Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.449Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.449Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.449Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.449Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.449Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8c9910>
[2024-11-23T00:19:49.449Z] query = 'INSERT INTO "tests_issue6110testmodel" ("name") VALUES (?) RETURNING "tests_issue6110testmodel"."id"'
[2024-11-23T00:19:49.449Z] params = ('test_name',)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] return super().execute(query)
[2024-11-23T00:19:49.449Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.449Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.449Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.449Z] > return super().execute(query, params)
[2024-11-23T00:19:49.449Z] E django.db.utils.OperationalError: no such table: tests_issue6110testmodel
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.449Z] _________ Issue6751Test.test_model_serializer_save_m2m_after_instance __________
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8a1fd0>
[2024-11-23T00:19:49.449Z] sql = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (%s, %s) RETURNING "tests_issue6751model"."id"'
[2024-11-23T00:19:49.449Z] params = ('initial value', '')
[2024-11-23T00:19:49.449Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8a1fd0>})
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.449Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.449Z] # ever set during testing).
[2024-11-23T00:19:49.449Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.449Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.449Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.449Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] # params default might be backend specific.
[2024-11-23T00:19:49.449Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.449Z] else:
[2024-11-23T00:19:49.449Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cb800>
[2024-11-23T00:19:49.449Z] query = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (?, ?) RETURNING "tests_issue6751model"."id"'
[2024-11-23T00:19:49.449Z] params = ('initial value', '')
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] return super().execute(query)
[2024-11-23T00:19:49.449Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.449Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.449Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.449Z] > return super().execute(query, params)
[2024-11-23T00:19:49.449Z] E sqlite3.OperationalError: no such table: tests_issue6751model
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <tests.test_model_serializer.Issue6751Test testMethod=test_model_serializer_save_m2m_after_instance>
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def test_model_serializer_save_m2m_after_instance(self):
[2024-11-23T00:19:49.449Z] class TestSerializer(serializers.ModelSerializer):
[2024-11-23T00:19:49.449Z] class Meta:
[2024-11-23T00:19:49.449Z] model = Issue6751Model
[2024-11-23T00:19:49.449Z] fields = (
[2024-11-23T00:19:49.449Z] 'many_to_many',
[2024-11-23T00:19:49.449Z] 'char_field',
[2024-11-23T00:19:49.449Z] )
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] > instance = Issue6751Model.objects.create(char_field='initial value')
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] tests/test_model_serializer.py:1388:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.449Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.449Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.449Z] self.save_base(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.449Z] updated = self._save_table(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.449Z] results = self._do_insert(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.449Z] return manager._insert(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.449Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.449Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.449Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.449Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.449Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.449Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.449Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.449Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cb800>
[2024-11-23T00:19:49.449Z] query = 'INSERT INTO "tests_issue6751model" ("char_field", "char_field2") VALUES (?, ?) RETURNING "tests_issue6751model"."id"'
[2024-11-23T00:19:49.449Z] params = ('initial value', '')
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] return super().execute(query)
[2024-11-23T00:19:49.449Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.449Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.449Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.449Z] > return super().execute(query, params)
[2024-11-23T00:19:49.449Z] E django.db.utils.OperationalError: no such table: tests_issue6751model
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.449Z] _ InheritedModelSerializationTests.test_onetoone_primary_key_model_fields_as_expected _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c8a05f0>
[2024-11-23T00:19:49.449Z] sql = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (%s) RETURNING "tests_parentmodel"."id"'
[2024-11-23T00:19:49.449Z] params = ('parent name',)
[2024-11-23T00:19:49.449Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c8a05f0>})
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.449Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.449Z] # ever set during testing).
[2024-11-23T00:19:49.449Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.449Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.449Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.449Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] # params default might be backend specific.
[2024-11-23T00:19:49.449Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.449Z] else:
[2024-11-23T00:19:49.449Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8ca4e0>
[2024-11-23T00:19:49.449Z] query = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (?) RETURNING "tests_parentmodel"."id"'
[2024-11-23T00:19:49.449Z] params = ('parent name',)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] return super().execute(query)
[2024-11-23T00:19:49.449Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.449Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.449Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.449Z] > return super().execute(query, params)
[2024-11-23T00:19:49.449Z] E sqlite3.OperationalError: no such table: tests_parentmodel
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <tests.test_multitable_inheritance.InheritedModelSerializationTests testMethod=test_onetoone_primary_key_model_fields_as_expected>
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def test_onetoone_primary_key_model_fields_as_expected(self):
[2024-11-23T00:19:49.449Z] """
[2024-11-23T00:19:49.449Z] Assert that a model with a onetoone field that is the primary key is
[2024-11-23T00:19:49.449Z] not treated like a derived model
[2024-11-23T00:19:49.449Z] """
[2024-11-23T00:19:49.449Z] > parent = ParentModel.objects.create(name1='parent name')
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] tests/test_multitable_inheritance.py:52:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.449Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.449Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.449Z] self.save_base(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.449Z] updated = self._save_table(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.449Z] results = self._do_insert(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.449Z] return manager._insert(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.449Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.449Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.449Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.449Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.449Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.449Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.449Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.449Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8ca4e0>
[2024-11-23T00:19:49.449Z] query = 'INSERT INTO "tests_parentmodel" ("name1") VALUES (?) RETURNING "tests_parentmodel"."id"'
[2024-11-23T00:19:49.449Z] params = ('parent name',)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.449Z] if params is None:
[2024-11-23T00:19:49.449Z] return super().execute(query)
[2024-11-23T00:19:49.449Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.449Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.449Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.449Z] > return super().execute(query, params)
[2024-11-23T00:19:49.449Z] E django.db.utils.OperationalError: no such table: tests_parentmodel
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.449Z] _________ TestPaginationIntegration.test_filtered_items_are_paginated __________
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7e521d835bd0>
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def test_filtered_items_are_paginated(self):
[2024-11-23T00:19:49.449Z] request = factory.get('/', {'page': 2})
[2024-11-23T00:19:49.449Z] > response = self.view(request)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] tests/test_pagination.py:44:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.449Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.449Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.449Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.449Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.449Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.449Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.449Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.449Z] raise exc
[2024-11-23T00:19:49.449Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.449Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.449Z] rest_framework/generics.py:203: in get
[2024-11-23T00:19:49.449Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.449Z] rest_framework/mixins.py:43: in list
[2024-11-23T00:19:49.449Z] return self.get_paginated_response(serializer.data)
[2024-11-23T00:19:49.449Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T00:19:49.449Z] return self.paginator.get_paginated_response(data)
[2024-11-23T00:19:49.449Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.449Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.449Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.449Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.449Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.449Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.449Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <WSGIRequest: GET '/?page=2'>
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def get_host(self):
[2024-11-23T00:19:49.449Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.449Z] host = self._get_raw_host()
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.449Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.449Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.449Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.449Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.449Z] return host
[2024-11-23T00:19:49.449Z] else:
[2024-11-23T00:19:49.449Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.449Z] if domain:
[2024-11-23T00:19:49.449Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.449Z] else:
[2024-11-23T00:19:49.449Z] msg += (
[2024-11-23T00:19:49.449Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.449Z] )
[2024-11-23T00:19:49.449Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.449Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.449Z] _______________ TestPaginationIntegration.test_setting_page_size _______________
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7e521d8360d0>
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] def test_setting_page_size(self):
[2024-11-23T00:19:49.449Z] """
[2024-11-23T00:19:49.449Z] When 'paginate_by_param' is set, the client may choose a page size.
[2024-11-23T00:19:49.449Z] """
[2024-11-23T00:19:49.449Z] request = factory.get('/', {'page_size': 10})
[2024-11-23T00:19:49.449Z] > response = self.view(request)
[2024-11-23T00:19:49.449Z]
[2024-11-23T00:19:49.449Z] tests/test_pagination.py:58:
[2024-11-23T00:19:49.449Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.449Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.449Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.449Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.449Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.449Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.450Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.450Z] raise exc
[2024-11-23T00:19:49.450Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.450Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:203: in get
[2024-11-23T00:19:49.450Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/mixins.py:43: in list
[2024-11-23T00:19:49.450Z] return self.get_paginated_response(serializer.data)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T00:19:49.450Z] return self.paginator.get_paginated_response(data)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page_size=10'>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] ________ TestPaginationIntegration.test_setting_page_size_over_maximum _________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7e521d245940>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def test_setting_page_size_over_maximum(self):
[2024-11-23T00:19:49.450Z] """
[2024-11-23T00:19:49.450Z] When page_size parameter exceeds maximum allowable,
[2024-11-23T00:19:49.450Z] then it should be capped to the maximum.
[2024-11-23T00:19:49.450Z] """
[2024-11-23T00:19:49.450Z] request = factory.get('/', {'page_size': 1000})
[2024-11-23T00:19:49.450Z] > response = self.view(request)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:73:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.450Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.450Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.450Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.450Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.450Z] raise exc
[2024-11-23T00:19:49.450Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.450Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:203: in get
[2024-11-23T00:19:49.450Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/mixins.py:43: in list
[2024-11-23T00:19:49.450Z] return self.get_paginated_response(serializer.data)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T00:19:49.450Z] return self.paginator.get_paginated_response(data)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page_size=1000'>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] ___________ TestPaginationIntegration.test_setting_page_size_to_zero ___________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7e521d245ba0>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def test_setting_page_size_to_zero(self):
[2024-11-23T00:19:49.450Z] """
[2024-11-23T00:19:49.450Z] When page_size parameter is invalid it should return to the default.
[2024-11-23T00:19:49.450Z] """
[2024-11-23T00:19:49.450Z] request = factory.get('/', {'page_size': 0})
[2024-11-23T00:19:49.450Z] > response = self.view(request)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:90:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.450Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.450Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.450Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.450Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.450Z] raise exc
[2024-11-23T00:19:49.450Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.450Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:203: in get
[2024-11-23T00:19:49.450Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/mixins.py:43: in list
[2024-11-23T00:19:49.450Z] return self.get_paginated_response(serializer.data)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T00:19:49.450Z] return self.paginator.get_paginated_response(data)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page_size=0'>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] _____ TestPaginationIntegration.test_additional_query_params_are_preserved _____
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7e521d8427b0>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def test_additional_query_params_are_preserved(self):
[2024-11-23T00:19:49.450Z] request = factory.get('/', {'page': 2, 'filter': 'even'})
[2024-11-23T00:19:49.450Z] > response = self.view(request)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:101:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.450Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.450Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.450Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.450Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.450Z] raise exc
[2024-11-23T00:19:49.450Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.450Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:203: in get
[2024-11-23T00:19:49.450Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/mixins.py:43: in list
[2024-11-23T00:19:49.450Z] return self.get_paginated_response(serializer.data)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T00:19:49.450Z] return self.paginator.get_paginated_response(data)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page=2&filter=even'>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] _______ TestPaginationIntegration.test_empty_query_params_are_preserved ________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPaginationIntegration object at 0x7e521d4a7df0>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def test_empty_query_params_are_preserved(self):
[2024-11-23T00:19:49.450Z] request = factory.get('/', {'page': 2, 'filter': ''})
[2024-11-23T00:19:49.450Z] > response = self.view(request)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:112:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.450Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.450Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.450Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.450Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.450Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.450Z] raise exc
[2024-11-23T00:19:49.450Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.450Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:203: in get
[2024-11-23T00:19:49.450Z] return self.list(request, *args, **kwargs)
[2024-11-23T00:19:49.450Z] rest_framework/mixins.py:43: in list
[2024-11-23T00:19:49.450Z] return self.get_paginated_response(serializer.data)
[2024-11-23T00:19:49.450Z] rest_framework/generics.py:182: in get_paginated_response
[2024-11-23T00:19:49.450Z] return self.paginator.get_paginated_response(data)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page=2&filter='>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] _______________ TestPageNumberPagination.test_no_page_number[/] ________________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7e521d836350>
[2024-11-23T00:19:49.450Z] url = '/'
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] @pytest.mark.parametrize('url', ['/', '/?page='])
[2024-11-23T00:19:49.450Z] def test_no_page_number(self, url):
[2024-11-23T00:19:49.450Z] request = Request(factory.get(url))
[2024-11-23T00:19:49.450Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.450Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:187:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T00:19:49.450Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] ____________ TestPageNumberPagination.test_no_page_number[/?page=] _____________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7e521d836490>
[2024-11-23T00:19:49.450Z] url = '/?page='
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] @pytest.mark.parametrize('url', ['/', '/?page='])
[2024-11-23T00:19:49.450Z] def test_no_page_number(self, url):
[2024-11-23T00:19:49.450Z] request = Request(factory.get(url))
[2024-11-23T00:19:49.450Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.450Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:187:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T00:19:49.450Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page='>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] __________________ TestPageNumberPagination.test_second_page ___________________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7e521d245220>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def test_second_page(self):
[2024-11-23T00:19:49.450Z] request = Request(factory.get('/', {'page': 2}))
[2024-11-23T00:19:49.450Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.450Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:213:
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T00:19:49.450Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:233: in get_paginated_response
[2024-11-23T00:19:49.450Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.450Z] rest_framework/pagination.py:278: in get_next_link
[2024-11-23T00:19:49.450Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.450Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.450Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.450Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.450Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <WSGIRequest: GET '/?page=2'>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def get_host(self):
[2024-11-23T00:19:49.450Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.450Z] host = self._get_raw_host()
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.450Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.450Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.450Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.450Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.450Z] return host
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.450Z] if domain:
[2024-11-23T00:19:49.450Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.450Z] else:
[2024-11-23T00:19:49.450Z] msg += (
[2024-11-23T00:19:49.450Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.450Z] )
[2024-11-23T00:19:49.450Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.450Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.450Z] ___________________ TestPageNumberPagination.test_last_page ____________________
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] self = <tests.test_pagination.TestPageNumberPagination object at 0x7e521d245480>
[2024-11-23T00:19:49.450Z]
[2024-11-23T00:19:49.450Z] def test_last_page(self):
[2024-11-23T00:19:49.450Z] request = Request(factory.get('/', {'page': 'last'}))
[2024-11-23T00:19:49.450Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:237:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:177: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:234: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'previous': self.get_previous_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:285: in get_previous_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?page=last'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] _____________ TestPageNumberPaginationOverride.test_no_page_number _____________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestPageNumberPaginationOverride object at 0x7e521d8365d0>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_no_page_number(self):
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/'))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z] > context = self.get_html_context()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:334:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:328: in get_html_context
[2024-11-23T00:19:49.451Z] return self.pagination.get_html_context()
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:292: in get_html_context
[2024-11-23T00:19:49.451Z] base_url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] ________________________ TestLimitOffset.test_no_offset ________________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521d836850>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_no_offset(self):
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 5}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:384:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=5'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] ______________________ TestLimitOffset.test_single_offset ______________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521d245e00>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_single_offset(self):
[2024-11-23T00:19:49.451Z] """
[2024-11-23T00:19:49.451Z] When the offset is not a multiple of the limit we get some edge cases:
[2024-11-23T00:19:49.451Z] * The first page should still be offset zero.
[2024-11-23T00:19:49.451Z] * We may end up displaying an extra page in the pagination control.
[2024-11-23T00:19:49.451Z] """
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 5, 'offset': 1}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:422:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=5&offset=1'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] ______________________ TestLimitOffset.test_first_offset _______________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521d245f30>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_first_offset(self):
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 5, 'offset': 5}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:446:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=5&offset=5'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] ______________________ TestLimitOffset.test_middle_offset ______________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521d849010>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_middle_offset(self):
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 5, 'offset': 10}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:470:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=5&offset=10'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] ______________________ TestLimitOffset.test_ending_offset ______________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521ca8c5a0>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_ending_offset(self):
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 5, 'offset': 95}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:495:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:407: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'previous': self.get_previous_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:470: in get_previous_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=5&offset=95'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] _____________________ TestLimitOffset.test_erronous_offset _____________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521ca8c6b0>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_erronous_offset(self):
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 5, 'offset': 1000}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:519:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:407: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'previous': self.get_previous_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:470: in get_previous_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=5&offset=1000'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.451Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.451Z] ______________________ TestLimitOffset.test_invalid_limit ______________________
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521cdef750>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def test_invalid_limit(self):
[2024-11-23T00:19:49.451Z] """
[2024-11-23T00:19:49.451Z] An invalid limit query param should be ignored in favor of the default.
[2024-11-23T00:19:49.451Z] """
[2024-11-23T00:19:49.451Z] request = Request(factory.get('/', {'limit': 'invalid', 'offset': 0}))
[2024-11-23T00:19:49.451Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.451Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:536:
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.451Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.451Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.451Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.451Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.451Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.451Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.451Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.451Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.451Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] self = <WSGIRequest: GET '/?limit=invalid&offset=0'>
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] def get_host(self):
[2024-11-23T00:19:49.451Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.451Z] host = self._get_raw_host()
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.451Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.451Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.451Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.451Z]
[2024-11-23T00:19:49.451Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.451Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.451Z] return host
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.451Z] if domain:
[2024-11-23T00:19:49.451Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.451Z] else:
[2024-11-23T00:19:49.451Z] msg += (
[2024-11-23T00:19:49.451Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.451Z] )
[2024-11-23T00:19:49.451Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] _______________________ TestLimitOffset.test_zero_limit ________________________
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521d72da90>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_zero_limit(self):
[2024-11-23T00:19:49.452Z] """
[2024-11-23T00:19:49.452Z] An zero limit query param should be ignored in favor of the default.
[2024-11-23T00:19:49.452Z] """
[2024-11-23T00:19:49.452Z] request = Request(factory.get('/', {'limit': 0, 'offset': 0}))
[2024-11-23T00:19:49.452Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.452Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:549:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.452Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.452Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.452Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?limit=0&offset=0'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] ________________________ TestLimitOffset.test_max_limit ________________________
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestLimitOffset object at 0x7e521d6d8b90>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_max_limit(self):
[2024-11-23T00:19:49.452Z] """
[2024-11-23T00:19:49.452Z] The limit defaults to the max_limit when there is a max_limit and the
[2024-11-23T00:19:49.452Z] requested limit is greater than the max_limit
[2024-11-23T00:19:49.452Z] """
[2024-11-23T00:19:49.452Z] offset = 50
[2024-11-23T00:19:49.452Z] request = Request(factory.get('/', {'limit': '11235', 'offset': offset}))
[2024-11-23T00:19:49.452Z] queryset = self.paginate_queryset(request)
[2024-11-23T00:19:49.452Z] > content = self.get_paginated_content(queryset)
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:564:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:375: in get_paginated_content
[2024-11-23T00:19:49.452Z] response = self.pagination.get_paginated_response(queryset)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:406: in get_paginated_response
[2024-11-23T00:19:49.452Z] 'next': self.get_next_link(),
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:460: in get_next_link
[2024-11-23T00:19:49.452Z] url = self.request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?limit=11235&offset=50'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] ___________________ TestCursorPagination.test_invalid_cursor ___________________
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521d836ad0>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_invalid_cursor(self):
[2024-11-23T00:19:49.452Z] request = Request(factory.get('/', {'cursor': '123'}))
[2024-11-23T00:19:49.452Z] with pytest.raises(exceptions.NotFound):
[2024-11-23T00:19:49.452Z] > self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:617:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?cursor=123'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] _________________ TestCursorPagination.test_cursor_pagination __________________
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521d246190>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination(self):
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/')
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:656:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] ____ TestCursorPagination.test_cursor_pagination_current_page_empty_forward ____
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521d84ac30>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination_current_page_empty_forward(self):
[2024-11-23T00:19:49.452Z] # Regression test for #6504
[2024-11-23T00:19:49.452Z] self.pagination.base_url = "/"
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # We have a cursor on the element at position 100, but this element doesn't exist
[2024-11-23T00:19:49.452Z] # anymore.
[2024-11-23T00:19:49.452Z] cursor = pagination.Cursor(reverse=False, offset=0, position=100)
[2024-11-23T00:19:49.452Z] url = self.pagination.encode_cursor(cursor)
[2024-11-23T00:19:49.452Z] self.pagination.base_url = "/"
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Loading the page with this cursor doesn't crash
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages(url)
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:735:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?cursor=cD0xMDA%3D'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] ____ TestCursorPagination.test_cursor_pagination_current_page_empty_reverse ____
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521ca8c7c0>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination_current_page_empty_reverse(self):
[2024-11-23T00:19:49.452Z] # Regression test for #6504
[2024-11-23T00:19:49.452Z] self.pagination.base_url = "/"
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # We have a cursor on the element at position 100, but this element doesn't exist
[2024-11-23T00:19:49.452Z] # anymore.
[2024-11-23T00:19:49.452Z] cursor = pagination.Cursor(reverse=True, offset=0, position=100)
[2024-11-23T00:19:49.452Z] url = self.pagination.encode_cursor(cursor)
[2024-11-23T00:19:49.452Z] self.pagination.base_url = "/"
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Loading the page with this cursor doesn't crash
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages(url)
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:758:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?cursor=cj0xJnA9MTAw'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] __________ TestCursorPagination.test_cursor_pagination_with_page_size __________
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521ca8c8d0>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination_with_page_size(self):
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=20')
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:771:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?page_size=20'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] ____ TestCursorPagination.test_cursor_pagination_with_page_size_over_limit _____
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521cdef550>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination_with_page_size_over_limit(self):
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=30')
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:783:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?page_size=30'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] _______ TestCursorPagination.test_cursor_pagination_with_page_size_zero ________
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521cded850>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination_with_page_size_zero(self):
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=0')
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:795:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.452Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <WSGIRequest: GET '/?page_size=0'>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def get_host(self):
[2024-11-23T00:19:49.452Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.452Z] host = self._get_raw_host()
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.452Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.452Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.452Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.452Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.452Z] return host
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.452Z] if domain:
[2024-11-23T00:19:49.452Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.452Z] else:
[2024-11-23T00:19:49.452Z] msg += (
[2024-11-23T00:19:49.452Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.452Z] )
[2024-11-23T00:19:49.452Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.452Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.452Z] _____ TestCursorPagination.test_cursor_pagination_with_page_size_negative ______
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] self = <tests.test_pagination.TestCursorPagination object at 0x7e521d6dad50>
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] def test_cursor_pagination_with_page_size_negative(self):
[2024-11-23T00:19:49.452Z] > (previous, current, next, previous_url, next_url) = self.get_pages('/?page_size=-5')
[2024-11-23T00:19:49.452Z]
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:862:
[2024-11-23T00:19:49.452Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.452Z] tests/test_pagination.py:1021: in get_pages
[2024-11-23T00:19:49.452Z] queryset = self.pagination.paginate_queryset(self.queryset, request)
[2024-11-23T00:19:49.452Z] rest_framework/pagination.py:617: in paginate_queryset
[2024-11-23T00:19:49.452Z] self.base_url = request.build_absolute_uri()
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.452Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.452Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.452Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.453Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <WSGIRequest: GET '/?page_size=-5'>
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def get_host(self):
[2024-11-23T00:19:49.453Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.453Z] host = self._get_raw_host()
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.453Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.453Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.453Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.453Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.453Z] return host
[2024-11-23T00:19:49.453Z] else:
[2024-11-23T00:19:49.453Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.453Z] if domain:
[2024-11-23T00:19:49.453Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.453Z] else:
[2024-11-23T00:19:49.453Z] msg += (
[2024-11-23T00:19:49.453Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.453Z] )
[2024-11-23T00:19:49.453Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.453Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.453Z] _________ TestCursorPaginationWithValueQueryset.test_cursor_pagination _________
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c72cef0>
[2024-11-23T00:19:49.453Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c72cef0>})
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.453Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.453Z] # ever set during testing).
[2024-11-23T00:19:49.453Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.453Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.453Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] # params default might be backend specific.
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.453Z] else:
[2024-11-23T00:19:49.453Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination>
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def setUp(self):
[2024-11-23T00:19:49.453Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.453Z] page_size = 5
[2024-11-23T00:19:49.453Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.453Z] max_page_size = 20
[2024-11-23T00:19:49.453Z] ordering = 'created'
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.453Z] data = [
[2024-11-23T00:19:49.453Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.453Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.453Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.453Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.453Z] ]
[2024-11-23T00:19:49.453Z] for idx in data:
[2024-11-23T00:19:49.453Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.453Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.453Z] self.save_base(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.453Z] updated = self._save_table(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.453Z] results = self._do_insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.453Z] return manager._insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.453Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.453Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.453Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.453Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.453Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_current_page_empty_forward _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c57d190>
[2024-11-23T00:19:49.453Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c57d190>})
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.453Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.453Z] # ever set during testing).
[2024-11-23T00:19:49.453Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.453Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.453Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] # params default might be backend specific.
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.453Z] else:
[2024-11-23T00:19:49.453Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbad0>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_current_page_empty_forward>
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def setUp(self):
[2024-11-23T00:19:49.453Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.453Z] page_size = 5
[2024-11-23T00:19:49.453Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.453Z] max_page_size = 20
[2024-11-23T00:19:49.453Z] ordering = 'created'
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.453Z] data = [
[2024-11-23T00:19:49.453Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.453Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.453Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.453Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.453Z] ]
[2024-11-23T00:19:49.453Z] for idx in data:
[2024-11-23T00:19:49.453Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.453Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.453Z] self.save_base(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.453Z] updated = self._save_table(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.453Z] results = self._do_insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.453Z] return manager._insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.453Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.453Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.453Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.453Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.453Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbad0>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_current_page_empty_reverse _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c57fd10>
[2024-11-23T00:19:49.453Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c57fd10>})
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.453Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.453Z] # ever set during testing).
[2024-11-23T00:19:49.453Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.453Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.453Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] # params default might be backend specific.
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.453Z] else:
[2024-11-23T00:19:49.453Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f140>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_current_page_empty_reverse>
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def setUp(self):
[2024-11-23T00:19:49.453Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.453Z] page_size = 5
[2024-11-23T00:19:49.453Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.453Z] max_page_size = 20
[2024-11-23T00:19:49.453Z] ordering = 'created'
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.453Z] data = [
[2024-11-23T00:19:49.453Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.453Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.453Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.453Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.453Z] ]
[2024-11-23T00:19:49.453Z] for idx in data:
[2024-11-23T00:19:49.453Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.453Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.453Z] self.save_base(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.453Z] updated = self._save_table(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.453Z] results = self._do_insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.453Z] return manager._insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.453Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.453Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.453Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.453Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.453Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f140>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size __
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c72f770>
[2024-11-23T00:19:49.453Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c72f770>})
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.453Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.453Z] # ever set during testing).
[2024-11-23T00:19:49.453Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.453Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.453Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] # params default might be backend specific.
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.453Z] else:
[2024-11-23T00:19:49.453Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d640>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.453Z] return super().execute(query)
[2024-11-23T00:19:49.453Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.453Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.453Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.453Z] > return super().execute(query, params)
[2024-11-23T00:19:49.453Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size>
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def setUp(self):
[2024-11-23T00:19:49.453Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.453Z] page_size = 5
[2024-11-23T00:19:49.453Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.453Z] max_page_size = 20
[2024-11-23T00:19:49.453Z] ordering = 'created'
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.453Z] data = [
[2024-11-23T00:19:49.453Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.453Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.453Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.453Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.453Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.453Z] ]
[2024-11-23T00:19:49.453Z] for idx in data:
[2024-11-23T00:19:49.453Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.453Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.453Z] self.save_base(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.453Z] updated = self._save_table(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.453Z] results = self._do_insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.453Z] return manager._insert(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.453Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.453Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.453Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.453Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.453Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.453Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.453Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.453Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.453Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.453Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d640>
[2024-11-23T00:19:49.453Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.453Z] params = (1,)
[2024-11-23T00:19:49.453Z]
[2024-11-23T00:19:49.453Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.453Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_negative _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c72fb30>
[2024-11-23T00:19:49.454Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c72fb30>})
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.454Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.454Z] # ever set during testing).
[2024-11-23T00:19:49.454Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.454Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.454Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] # params default might be backend specific.
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.454Z] else:
[2024-11-23T00:19:49.454Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbad0>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size_negative>
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def setUp(self):
[2024-11-23T00:19:49.454Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.454Z] page_size = 5
[2024-11-23T00:19:49.454Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.454Z] max_page_size = 20
[2024-11-23T00:19:49.454Z] ordering = 'created'
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.454Z] data = [
[2024-11-23T00:19:49.454Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.454Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.454Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.454Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.454Z] ]
[2024-11-23T00:19:49.454Z] for idx in data:
[2024-11-23T00:19:49.454Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.454Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.454Z] self.save_base(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.454Z] updated = self._save_table(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.454Z] results = self._do_insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.454Z] return manager._insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.454Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.454Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.454Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.454Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.454Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbad0>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_over_limit _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c57c4d0>
[2024-11-23T00:19:49.454Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c57c4d0>})
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.454Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.454Z] # ever set during testing).
[2024-11-23T00:19:49.454Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.454Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.454Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] # params default might be backend specific.
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.454Z] else:
[2024-11-23T00:19:49.454Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ef90>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size_over_limit>
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def setUp(self):
[2024-11-23T00:19:49.454Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.454Z] page_size = 5
[2024-11-23T00:19:49.454Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.454Z] max_page_size = 20
[2024-11-23T00:19:49.454Z] ordering = 'created'
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.454Z] data = [
[2024-11-23T00:19:49.454Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.454Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.454Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.454Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.454Z] ]
[2024-11-23T00:19:49.454Z] for idx in data:
[2024-11-23T00:19:49.454Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.454Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.454Z] self.save_base(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.454Z] updated = self._save_table(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.454Z] results = self._do_insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.454Z] return manager._insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.454Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.454Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.454Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.454Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.454Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ef90>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z] _ TestCursorPaginationWithValueQueryset.test_cursor_pagination_with_page_size_zero _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c57fa10>
[2024-11-23T00:19:49.454Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c57fa10>})
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.454Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.454Z] # ever set during testing).
[2024-11-23T00:19:49.454Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.454Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.454Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] # params default might be backend specific.
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.454Z] else:
[2024-11-23T00:19:49.454Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e720>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_cursor_pagination_with_page_size_zero>
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def setUp(self):
[2024-11-23T00:19:49.454Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.454Z] page_size = 5
[2024-11-23T00:19:49.454Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.454Z] max_page_size = 20
[2024-11-23T00:19:49.454Z] ordering = 'created'
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.454Z] data = [
[2024-11-23T00:19:49.454Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.454Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.454Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.454Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.454Z] ]
[2024-11-23T00:19:49.454Z] for idx in data:
[2024-11-23T00:19:49.454Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.454Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.454Z] self.save_base(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.454Z] updated = self._save_table(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.454Z] results = self._do_insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.454Z] return manager._insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.454Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.454Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.454Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.454Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.454Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e720>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z] ___ TestCursorPaginationWithValueQueryset.test_get_paginated_response_schema ___
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c72ee10>
[2024-11-23T00:19:49.454Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c72ee10>})
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.454Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.454Z] # ever set during testing).
[2024-11-23T00:19:49.454Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.454Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.454Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] # params default might be backend specific.
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.454Z] else:
[2024-11-23T00:19:49.454Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e960>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_get_paginated_response_schema>
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def setUp(self):
[2024-11-23T00:19:49.454Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.454Z] page_size = 5
[2024-11-23T00:19:49.454Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.454Z] max_page_size = 20
[2024-11-23T00:19:49.454Z] ordering = 'created'
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.454Z] data = [
[2024-11-23T00:19:49.454Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.454Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.454Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.454Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.454Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.454Z] ]
[2024-11-23T00:19:49.454Z] for idx in data:
[2024-11-23T00:19:49.454Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.454Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.454Z] self.save_base(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.454Z] updated = self._save_table(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.454Z] results = self._do_insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.454Z] return manager._insert(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.454Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.454Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.454Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.454Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.454Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.454Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.454Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.454Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.454Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e960>
[2024-11-23T00:19:49.454Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.454Z] params = (1,)
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.454Z] if params is None:
[2024-11-23T00:19:49.454Z] return super().execute(query)
[2024-11-23T00:19:49.454Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.454Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.454Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.454Z] > return super().execute(query, params)
[2024-11-23T00:19:49.454Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.454Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.454Z] __________ TestCursorPaginationWithValueQueryset.test_invalid_cursor ___________
[2024-11-23T00:19:49.454Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c61d3d0>
[2024-11-23T00:19:49.455Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c61d3d0>})
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.455Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.455Z] # ever set during testing).
[2024-11-23T00:19:49.455Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.455Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.455Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] # params default might be backend specific.
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.455Z] else:
[2024-11-23T00:19:49.455Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e690>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_invalid_cursor>
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def setUp(self):
[2024-11-23T00:19:49.455Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.455Z] page_size = 5
[2024-11-23T00:19:49.455Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.455Z] max_page_size = 20
[2024-11-23T00:19:49.455Z] ordering = 'created'
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.455Z] data = [
[2024-11-23T00:19:49.455Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.455Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.455Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.455Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.455Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.455Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.455Z] ]
[2024-11-23T00:19:49.455Z] for idx in data:
[2024-11-23T00:19:49.455Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.455Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.455Z] self.save_base(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.455Z] updated = self._save_table(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.455Z] results = self._do_insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.455Z] return manager._insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.455Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.455Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.455Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.455Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.455Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e690>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z] _____ TestCursorPaginationWithValueQueryset.test_use_with_ordering_filter ______
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c61dd90>
[2024-11-23T00:19:49.455Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c61dd90>})
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.455Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.455Z] # ever set during testing).
[2024-11-23T00:19:49.455Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.455Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.455Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] # params default might be backend specific.
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.455Z] else:
[2024-11-23T00:19:49.455Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_use_with_ordering_filter>
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def setUp(self):
[2024-11-23T00:19:49.455Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.455Z] page_size = 5
[2024-11-23T00:19:49.455Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.455Z] max_page_size = 20
[2024-11-23T00:19:49.455Z] ordering = 'created'
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.455Z] data = [
[2024-11-23T00:19:49.455Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.455Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.455Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.455Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.455Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.455Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.455Z] ]
[2024-11-23T00:19:49.455Z] for idx in data:
[2024-11-23T00:19:49.455Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.455Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.455Z] self.save_base(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.455Z] updated = self._save_table(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.455Z] results = self._do_insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.455Z] return manager._insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.455Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.455Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.455Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.455Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.455Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z] _ TestCursorPaginationWithValueQueryset.test_use_with_ordering_filter_without_ordering_default_value _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c61e210>
[2024-11-23T00:19:49.455Z] sql = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (%s) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c61e210>})
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.455Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.455Z] # ever set during testing).
[2024-11-23T00:19:49.455Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.455Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.455Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] # params default might be backend specific.
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.455Z] else:
[2024-11-23T00:19:49.455Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E sqlite3.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <tests.test_pagination.TestCursorPaginationWithValueQueryset testMethod=test_use_with_ordering_filter_without_ordering_default_value>
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def setUp(self):
[2024-11-23T00:19:49.455Z] class ExamplePagination(pagination.CursorPagination):
[2024-11-23T00:19:49.455Z] page_size = 5
[2024-11-23T00:19:49.455Z] page_size_query_param = 'page_size'
[2024-11-23T00:19:49.455Z] max_page_size = 20
[2024-11-23T00:19:49.455Z] ordering = 'created'
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self.pagination = ExamplePagination()
[2024-11-23T00:19:49.455Z] data = [
[2024-11-23T00:19:49.455Z] 1, 1, 1, 1, 1,
[2024-11-23T00:19:49.455Z] 1, 2, 3, 4, 4,
[2024-11-23T00:19:49.455Z] 4, 4, 5, 6, 7,
[2024-11-23T00:19:49.455Z] 7, 7, 7, 7, 7,
[2024-11-23T00:19:49.455Z] 7, 7, 7, 8, 9,
[2024-11-23T00:19:49.455Z] 9, 9, 9, 9, 9
[2024-11-23T00:19:49.455Z] ]
[2024-11-23T00:19:49.455Z] for idx in data:
[2024-11-23T00:19:49.455Z] > CursorPaginationModel.objects.create(created=idx)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] tests/test_pagination.py:1070:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.455Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.455Z] self.save_base(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.455Z] updated = self._save_table(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.455Z] results = self._do_insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.455Z] return manager._insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.455Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.455Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.455Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.455Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.455Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "tests_cursorpaginationmodel" ("created") VALUES (?) RETURNING "tests_cursorpaginationmodel"."id"'
[2024-11-23T00:19:49.455Z] params = (1,)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z] _ ModelPermissionsIntegrationTests.test_api_root_view_discard_default_django_model_permission _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c645070>
[2024-11-23T00:19:49.455Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.455Z] params = ('md5$Bazczzam1tlxYBmEvv09Xz$060347ee6d94319ecbbd2a68cb480507', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.455Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c645070>})
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.455Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.455Z] # ever set during testing).
[2024-11-23T00:19:49.455Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.455Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.455Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] # params default might be backend specific.
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.455Z] else:
[2024-11-23T00:19:49.455Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ec30>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.455Z] params = ('md5$Bazczzam1tlxYBmEvv09Xz$060347ee6d94319ecbbd2a68cb480507', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_api_root_view_discard_default_django_model_permission>
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def setUp(self):
[2024-11-23T00:19:49.455Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.455Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.455Z] user.save(using=self._db)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.455Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.455Z] self.save_base(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.455Z] updated = self._save_table(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.455Z] results = self._do_insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.455Z] return manager._insert(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.455Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.455Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.455Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.455Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.455Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.455Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ec30>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.455Z] params = ('md5$Bazczzam1tlxYBmEvv09Xz$060347ee6d94319ecbbd2a68cb480507', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.455Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.455Z] _______ ModelPermissionsIntegrationTests.test_calling_method_not_allowed _______
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c59d6d0>
[2024-11-23T00:19:49.455Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.455Z] params = ('md5$BqtujW9MBpDQhIZHDm6yYc$4a3c046f1a56b919acaa6f87fb23dde4', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.455Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c59d6d0>})
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.455Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.455Z] # ever set during testing).
[2024-11-23T00:19:49.455Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.455Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.455Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.455Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] # params default might be backend specific.
[2024-11-23T00:19:49.455Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.455Z] else:
[2024-11-23T00:19:49.455Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.455Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68fbf0>
[2024-11-23T00:19:49.455Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.455Z] params = ('md5$BqtujW9MBpDQhIZHDm6yYc$4a3c046f1a56b919acaa6f87fb23dde4', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.455Z]
[2024-11-23T00:19:49.455Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.455Z] if params is None:
[2024-11-23T00:19:49.455Z] return super().execute(query)
[2024-11-23T00:19:49.455Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.455Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.455Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.455Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_calling_method_not_allowed>
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def setUp(self):
[2024-11-23T00:19:49.456Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.456Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.456Z] user.save(using=self._db)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.456Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.456Z] self.save_base(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.456Z] updated = self._save_table(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.456Z] results = self._do_insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.456Z] return manager._insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.456Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.456Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.456Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.456Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.456Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.456Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68fbf0>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$BqtujW9MBpDQhIZHDm6yYc$4a3c046f1a56b919acaa6f87fb23dde4', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z] ____ ModelPermissionsIntegrationTests.test_check_auth_before_queryset_call _____
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c59e150>
[2024-11-23T00:19:49.456Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$DE0Kbzu51TsB7OSVYiYvmQ$d43bfaace86c4265c9e65688be2c4061', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c59e150>})
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.456Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.456Z] # ever set during testing).
[2024-11-23T00:19:49.456Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.456Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.456Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] # params default might be backend specific.
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.456Z] else:
[2024-11-23T00:19:49.456Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbc80>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$DE0Kbzu51TsB7OSVYiYvmQ$d43bfaace86c4265c9e65688be2c4061', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_check_auth_before_queryset_call>
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def setUp(self):
[2024-11-23T00:19:49.456Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.456Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.456Z] user.save(using=self._db)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.456Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.456Z] self.save_base(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.456Z] updated = self._save_table(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.456Z] results = self._do_insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.456Z] return manager._insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.456Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.456Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.456Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.456Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.456Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.456Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbc80>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$DE0Kbzu51TsB7OSVYiYvmQ$d43bfaace86c4265c9e65688be2c4061', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z] ____ ModelPermissionsIntegrationTests.test_does_not_have_create_permissions ____
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c59e270>
[2024-11-23T00:19:49.456Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$Fmb3TWdL4c6HqyZr1fm5KL$fbb2845ac723b408160b3b151594af74', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c59e270>})
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.456Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.456Z] # ever set during testing).
[2024-11-23T00:19:49.456Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.456Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.456Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] # params default might be backend specific.
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.456Z] else:
[2024-11-23T00:19:49.456Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d130>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$Fmb3TWdL4c6HqyZr1fm5KL$fbb2845ac723b408160b3b151594af74', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_does_not_have_create_permissions>
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def setUp(self):
[2024-11-23T00:19:49.456Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.456Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.456Z] user.save(using=self._db)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.456Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.456Z] self.save_base(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.456Z] updated = self._save_table(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.456Z] results = self._do_insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.456Z] return manager._insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.456Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.456Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.456Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.456Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.456Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.456Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d130>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$Fmb3TWdL4c6HqyZr1fm5KL$fbb2845ac723b408160b3b151594af74', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z] ____ ModelPermissionsIntegrationTests.test_does_not_have_delete_permissions ____
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c7228d0>
[2024-11-23T00:19:49.456Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$O6Ix69wKFfUgg5bY36uivc$d555561318497d0892488c1e9bc9781c', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c7228d0>})
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.456Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.456Z] # ever set during testing).
[2024-11-23T00:19:49.456Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.456Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.456Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] # params default might be backend specific.
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.456Z] else:
[2024-11-23T00:19:49.456Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbc80>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$O6Ix69wKFfUgg5bY36uivc$d555561318497d0892488c1e9bc9781c', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_does_not_have_delete_permissions>
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def setUp(self):
[2024-11-23T00:19:49.456Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.456Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.456Z] user.save(using=self._db)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.456Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.456Z] self.save_base(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.456Z] updated = self._save_table(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.456Z] results = self._do_insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.456Z] return manager._insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.456Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.456Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.456Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.456Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.456Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.456Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbc80>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$O6Ix69wKFfUgg5bY36uivc$d555561318497d0892488c1e9bc9781c', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z] _____ ModelPermissionsIntegrationTests.test_does_not_have_put_permissions ______
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c59ed50>
[2024-11-23T00:19:49.456Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$0EhcHfNo47EPs4TE1P8liG$6a0a220a4f106a0dedcce88f905f3a2a', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c59ed50>})
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.456Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.456Z] # ever set during testing).
[2024-11-23T00:19:49.456Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.456Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.456Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.456Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] # params default might be backend specific.
[2024-11-23T00:19:49.456Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.456Z] else:
[2024-11-23T00:19:49.456Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68fec0>
[2024-11-23T00:19:49.456Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.456Z] params = ('md5$0EhcHfNo47EPs4TE1P8liG$6a0a220a4f106a0dedcce88f905f3a2a', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.456Z] if params is None:
[2024-11-23T00:19:49.456Z] return super().execute(query)
[2024-11-23T00:19:49.456Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.456Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.456Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.456Z] > return super().execute(query, params)
[2024-11-23T00:19:49.456Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_does_not_have_put_permissions>
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] def setUp(self):
[2024-11-23T00:19:49.456Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.456Z]
[2024-11-23T00:19:49.456Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.456Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.456Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.456Z] user.save(using=self._db)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.456Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.456Z] self.save_base(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.456Z] updated = self._save_table(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.456Z] results = self._do_insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.456Z] return manager._insert(
[2024-11-23T00:19:49.456Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.457Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.457Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.457Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.457Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.457Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.457Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68fec0>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$0EhcHfNo47EPs4TE1P8liG$6a0a220a4f106a0dedcce88f905f3a2a', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z] _______ ModelPermissionsIntegrationTests.test_empty_view_does_not_assert _______
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5ac110>
[2024-11-23T00:19:49.457Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$AoiF86OCx0CI0D5hH9Fu5R$90b27353c61df7cd5dacbb0f494d1bdb', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5ac110>})
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.457Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.457Z] # ever set during testing).
[2024-11-23T00:19:49.457Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.457Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.457Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] # params default might be backend specific.
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.457Z] else:
[2024-11-23T00:19:49.457Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e0f0>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$AoiF86OCx0CI0D5hH9Fu5R$90b27353c61df7cd5dacbb0f494d1bdb', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_empty_view_does_not_assert>
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def setUp(self):
[2024-11-23T00:19:49.457Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.457Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.457Z] user.save(using=self._db)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.457Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.457Z] self.save_base(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.457Z] updated = self._save_table(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.457Z] results = self._do_insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.457Z] return manager._insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.457Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.457Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.457Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.457Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.457Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.457Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e0f0>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$AoiF86OCx0CI0D5hH9Fu5R$90b27353c61df7cd5dacbb0f494d1bdb', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z] __ ModelPermissionsIntegrationTests.test_get_queryset_has_create_permissions ___
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5adbb0>
[2024-11-23T00:19:49.457Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$BMg9CvnQwGo3FgORRItwYX$31ff00fb3e53fa23fc1c0383d1e596a8', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5adbb0>})
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.457Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.457Z] # ever set during testing).
[2024-11-23T00:19:49.457Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.457Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.457Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] # params default might be backend specific.
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.457Z] else:
[2024-11-23T00:19:49.457Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68c320>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$BMg9CvnQwGo3FgORRItwYX$31ff00fb3e53fa23fc1c0383d1e596a8', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_get_queryset_has_create_permissions>
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def setUp(self):
[2024-11-23T00:19:49.457Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.457Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.457Z] user.save(using=self._db)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.457Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.457Z] self.save_base(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.457Z] updated = self._save_table(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.457Z] results = self._do_insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.457Z] return manager._insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.457Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.457Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.457Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.457Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.457Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.457Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68c320>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$BMg9CvnQwGo3FgORRItwYX$31ff00fb3e53fa23fc1c0383d1e596a8', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z] _________ ModelPermissionsIntegrationTests.test_has_create_permissions _________
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5ae750>
[2024-11-23T00:19:49.457Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$MMbpHefVndrmxmtr0n4R1t$93eb3e17c840773987a760f7e3f84328', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5ae750>})
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.457Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.457Z] # ever set during testing).
[2024-11-23T00:19:49.457Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.457Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.457Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] # params default might be backend specific.
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.457Z] else:
[2024-11-23T00:19:49.457Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$MMbpHefVndrmxmtr0n4R1t$93eb3e17c840773987a760f7e3f84328', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_has_create_permissions>
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def setUp(self):
[2024-11-23T00:19:49.457Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.457Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.457Z] user.save(using=self._db)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.457Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.457Z] self.save_base(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.457Z] updated = self._save_table(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.457Z] results = self._do_insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.457Z] return manager._insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.457Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.457Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.457Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.457Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.457Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.457Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$MMbpHefVndrmxmtr0n4R1t$93eb3e17c840773987a760f7e3f84328', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z] _________ ModelPermissionsIntegrationTests.test_has_delete_permissions _________
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5ae8d0>
[2024-11-23T00:19:49.457Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$3rvoQHLxer14jWzzphcwG1$71c51a7d5c716126660832d88b80b71f', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5ae8d0>})
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.457Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.457Z] # ever set during testing).
[2024-11-23T00:19:49.457Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.457Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.457Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] # params default might be backend specific.
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.457Z] else:
[2024-11-23T00:19:49.457Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbec0>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$3rvoQHLxer14jWzzphcwG1$71c51a7d5c716126660832d88b80b71f', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_has_delete_permissions>
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def setUp(self):
[2024-11-23T00:19:49.457Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.457Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.457Z] user.save(using=self._db)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.457Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.457Z] self.save_base(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.457Z] updated = self._save_table(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.457Z] results = self._do_insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.457Z] return manager._insert(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.457Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.457Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.457Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.457Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.457Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.457Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.457Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.457Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.457Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbec0>
[2024-11-23T00:19:49.457Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$3rvoQHLxer14jWzzphcwG1$71c51a7d5c716126660832d88b80b71f', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.457Z] if params is None:
[2024-11-23T00:19:49.457Z] return super().execute(query)
[2024-11-23T00:19:49.457Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.457Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.457Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.457Z] > return super().execute(query, params)
[2024-11-23T00:19:49.457Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.457Z] __________ ModelPermissionsIntegrationTests.test_has_put_permissions ___________
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5adbb0>
[2024-11-23T00:19:49.457Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.457Z] params = ('md5$sDn3xSm0Jusc3EDl5KcJ8Y$74759d43783e4d4197cfa6994ac5cac6', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.457Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5adbb0>})
[2024-11-23T00:19:49.457Z]
[2024-11-23T00:19:49.457Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.457Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.457Z] # ever set during testing).
[2024-11-23T00:19:49.458Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.458Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.458Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] # params default might be backend specific.
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.458Z] else:
[2024-11-23T00:19:49.458Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f380>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$sDn3xSm0Jusc3EDl5KcJ8Y$74759d43783e4d4197cfa6994ac5cac6', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_has_put_permissions>
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def setUp(self):
[2024-11-23T00:19:49.458Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.458Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.458Z] user.save(using=self._db)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.458Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.458Z] self.save_base(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.458Z] updated = self._save_table(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.458Z] results = self._do_insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.458Z] return manager._insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.458Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.458Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.458Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.458Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.458Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.458Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f380>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$sDn3xSm0Jusc3EDl5KcJ8Y$74759d43783e4d4197cfa6994ac5cac6', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z] _ ModelPermissionsIntegrationTests.test_ignore_model_permissions_with_authenticated_user _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5c62d0>
[2024-11-23T00:19:49.458Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$syzCVF2RNxTiNVDzEUQtvH$0160511e3961e83447ac197222881ce0', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5c62d0>})
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.458Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.458Z] # ever set during testing).
[2024-11-23T00:19:49.458Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.458Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.458Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] # params default might be backend specific.
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.458Z] else:
[2024-11-23T00:19:49.458Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$syzCVF2RNxTiNVDzEUQtvH$0160511e3961e83447ac197222881ce0', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_ignore_model_permissions_with_authenticated_user>
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def setUp(self):
[2024-11-23T00:19:49.458Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.458Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.458Z] user.save(using=self._db)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.458Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.458Z] self.save_base(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.458Z] updated = self._save_table(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.458Z] results = self._do_insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.458Z] return manager._insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.458Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.458Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.458Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.458Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.458Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.458Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$syzCVF2RNxTiNVDzEUQtvH$0160511e3961e83447ac197222881ce0', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z] _ ModelPermissionsIntegrationTests.test_ignore_model_permissions_with_unauthenticated_user _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5c4350>
[2024-11-23T00:19:49.458Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$0XAwtrz0Fh0LzsRJyceBt7$494e8d7bd2633147e1a38ae50043ebc7', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5c4350>})
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.458Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.458Z] # ever set during testing).
[2024-11-23T00:19:49.458Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.458Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.458Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] # params default might be backend specific.
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.458Z] else:
[2024-11-23T00:19:49.458Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ed50>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$0XAwtrz0Fh0LzsRJyceBt7$494e8d7bd2633147e1a38ae50043ebc7', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_ignore_model_permissions_with_unauthenticated_user>
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def setUp(self):
[2024-11-23T00:19:49.458Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.458Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.458Z] user.save(using=self._db)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.458Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.458Z] self.save_base(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.458Z] updated = self._save_table(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.458Z] results = self._do_insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.458Z] return manager._insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.458Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.458Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.458Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.458Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.458Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.458Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ed50>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$0XAwtrz0Fh0LzsRJyceBt7$494e8d7bd2633147e1a38ae50043ebc7', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z] ___________ ModelPermissionsIntegrationTests.test_options_disallowed ___________
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5c4110>
[2024-11-23T00:19:49.458Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$DcoaVAYaR8Q2fYrDwAl6L9$733287ea04f7157c27ac8fb9b918c9e5', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5c4110>})
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.458Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.458Z] # ever set during testing).
[2024-11-23T00:19:49.458Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.458Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.458Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] # params default might be backend specific.
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.458Z] else:
[2024-11-23T00:19:49.458Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68c320>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$DcoaVAYaR8Q2fYrDwAl6L9$733287ea04f7157c27ac8fb9b918c9e5', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_options_disallowed>
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def setUp(self):
[2024-11-23T00:19:49.458Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.458Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.458Z] user.save(using=self._db)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.458Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.458Z] self.save_base(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.458Z] updated = self._save_table(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.458Z] results = self._do_insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.458Z] return manager._insert(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.458Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.458Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.458Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.458Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.458Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.458Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68c320>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$DcoaVAYaR8Q2fYrDwAl6L9$733287ea04f7157c27ac8fb9b918c9e5', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.458Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.458Z] > return super().execute(query, params)
[2024-11-23T00:19:49.458Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.458Z] ___________ ModelPermissionsIntegrationTests.test_options_permitted ____________
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cae4650>
[2024-11-23T00:19:49.458Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$PnCOQPm1Ucu83YOxLlLMdY$30791909c1b4ac4c10d342f7582cb861', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cae4650>})
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.458Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.458Z] # ever set during testing).
[2024-11-23T00:19:49.458Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.458Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.458Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.458Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] # params default might be backend specific.
[2024-11-23T00:19:49.458Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.458Z] else:
[2024-11-23T00:19:49.458Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.458Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ef90>
[2024-11-23T00:19:49.458Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.458Z] params = ('md5$PnCOQPm1Ucu83YOxLlLMdY$30791909c1b4ac4c10d342f7582cb861', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.458Z]
[2024-11-23T00:19:49.458Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.458Z] if params is None:
[2024-11-23T00:19:49.458Z] return super().execute(query)
[2024-11-23T00:19:49.458Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.458Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_options_permitted>
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def setUp(self):
[2024-11-23T00:19:49.459Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.459Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.459Z] user.save(using=self._db)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.459Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.459Z] self.save_base(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.459Z] updated = self._save_table(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.459Z] results = self._do_insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.459Z] return manager._insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.459Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.459Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.459Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.459Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.459Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.459Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68ef90>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$PnCOQPm1Ucu83YOxLlLMdY$30791909c1b4ac4c10d342f7582cb861', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z] ___________ ModelPermissionsIntegrationTests.test_options_updateonly ___________
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cae5190>
[2024-11-23T00:19:49.459Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$2SIBnbGfGYVPJtyCpqv2YS$dfae33ffcc972d101e79420c151dabfd', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cae5190>})
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.459Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.459Z] # ever set during testing).
[2024-11-23T00:19:49.459Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.459Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.459Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] # params default might be backend specific.
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.459Z] else:
[2024-11-23T00:19:49.459Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$2SIBnbGfGYVPJtyCpqv2YS$dfae33ffcc972d101e79420c151dabfd', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_options_updateonly>
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def setUp(self):
[2024-11-23T00:19:49.459Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.459Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.459Z] user.save(using=self._db)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.459Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.459Z] self.save_base(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.459Z] updated = self._save_table(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.459Z] results = self._do_insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.459Z] return manager._insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.459Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.459Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.459Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.459Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.459Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.459Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$2SIBnbGfGYVPJtyCpqv2YS$dfae33ffcc972d101e79420c151dabfd', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z] __________ ModelPermissionsIntegrationTests.test_queryset_assertions ___________
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5c6db0>
[2024-11-23T00:19:49.459Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$YQhyfU4mXGGHWkCapVoBoJ$31c94f129b5df1031f88c6f491e3c8a5', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5c6db0>})
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.459Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.459Z] # ever set during testing).
[2024-11-23T00:19:49.459Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.459Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.459Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] # params default might be backend specific.
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.459Z] else:
[2024-11-23T00:19:49.459Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d0a0>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$YQhyfU4mXGGHWkCapVoBoJ$31c94f129b5df1031f88c6f491e3c8a5', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <tests.test_permissions.ModelPermissionsIntegrationTests testMethod=test_queryset_assertions>
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def setUp(self):
[2024-11-23T00:19:49.459Z] > User.objects.create_user('disallowed', 'disallowed at example.com', 'password')
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] tests/test_permissions.py:78:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.459Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.459Z] user.save(using=self._db)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.459Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.459Z] self.save_base(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.459Z] updated = self._save_table(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.459Z] results = self._do_insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.459Z] return manager._insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.459Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.459Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.459Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.459Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.459Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.459Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d0a0>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.459Z] params = ('md5$YQhyfU4mXGGHWkCapVoBoJ$31c94f129b5df1031f88c6f491e3c8a5', None, False, 'disallowed', '', '', ...)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z] ________________ CustomPermissionsTests.test_permission_denied _________________
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cae4e30>
[2024-11-23T00:19:49.459Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cae4e30>})
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.459Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.459Z] # ever set during testing).
[2024-11-23T00:19:49.459Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.459Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.459Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] # params default might be backend specific.
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.459Z] else:
[2024-11-23T00:19:49.459Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c015d90>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied>
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def setUp(self):
[2024-11-23T00:19:49.459Z] > BasicModel(text='foo').save()
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] tests/test_permissions.py:509:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.459Z] self.save_base(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.459Z] updated = self._save_table(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.459Z] results = self._do_insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.459Z] return manager._insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.459Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.459Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.459Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.459Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.459Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.459Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c015d90>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z] ___________ CustomPermissionsTests.test_permission_denied_for_object ___________
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cae5f10>
[2024-11-23T00:19:49.459Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cae5f10>})
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.459Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.459Z] # ever set during testing).
[2024-11-23T00:19:49.459Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.459Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.459Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] # params default might be backend specific.
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.459Z] else:
[2024-11-23T00:19:49.459Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016a80>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied_for_object>
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def setUp(self):
[2024-11-23T00:19:49.459Z] > BasicModel(text='foo').save()
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] tests/test_permissions.py:509:
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.459Z] self.save_base(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.459Z] updated = self._save_table(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.459Z] results = self._do_insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.459Z] return manager._insert(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.459Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.459Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.459Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.459Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.459Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.459Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.459Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.459Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.459Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016a80>
[2024-11-23T00:19:49.459Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.459Z] if params is None:
[2024-11-23T00:19:49.459Z] return super().execute(query)
[2024-11-23T00:19:49.459Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.459Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.459Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.459Z] > return super().execute(query, params)
[2024-11-23T00:19:49.459Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.459Z] _ CustomPermissionsTests.test_permission_denied_for_object_with_custom_detail __
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac4470>
[2024-11-23T00:19:49.459Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.459Z] params = ('foo',)
[2024-11-23T00:19:49.459Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac4470>})
[2024-11-23T00:19:49.459Z]
[2024-11-23T00:19:49.459Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.459Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.459Z] # ever set during testing).
[2024-11-23T00:19:49.459Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.459Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.459Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] # params default might be backend specific.
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.460Z] else:
[2024-11-23T00:19:49.460Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016570>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.460Z] params = ('foo',)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied_for_object_with_custom_detail>
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def setUp(self):
[2024-11-23T00:19:49.460Z] > BasicModel(text='foo').save()
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] tests/test_permissions.py:509:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.460Z] self.save_base(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.460Z] updated = self._save_table(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.460Z] results = self._do_insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.460Z] return manager._insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.460Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.460Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.460Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.460Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.460Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.460Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016570>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.460Z] params = ('foo',)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z] _______ CustomPermissionsTests.test_permission_denied_with_custom_detail _______
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac4ef0>
[2024-11-23T00:19:49.460Z] sql = 'INSERT INTO "tests_basicmodel" ("text") VALUES (%s) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.460Z] params = ('foo',)
[2024-11-23T00:19:49.460Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac4ef0>})
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.460Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.460Z] # ever set during testing).
[2024-11-23T00:19:49.460Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.460Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.460Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] # params default might be backend specific.
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.460Z] else:
[2024-11-23T00:19:49.460Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c014a70>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.460Z] params = ('foo',)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E sqlite3.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <tests.test_permissions.CustomPermissionsTests testMethod=test_permission_denied_with_custom_detail>
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def setUp(self):
[2024-11-23T00:19:49.460Z] > BasicModel(text='foo').save()
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] tests/test_permissions.py:509:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.460Z] self.save_base(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.460Z] updated = self._save_table(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.460Z] results = self._do_insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.460Z] return manager._insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.460Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.460Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.460Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.460Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.460Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.460Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c014a70>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "tests_basicmodel" ("text") VALUES (?) RETURNING "tests_basicmodel"."id"'
[2024-11-23T00:19:49.460Z] params = ('foo',)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z] __________________ PermissionsCompositionTests.test_and_false __________________
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5ada30>
[2024-11-23T00:19:49.460Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$SJNuwpTjKRAtOxsj6pqqdn$d8a0a645b0eb8d387cbf10db90922497', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5ada30>})
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.460Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.460Z] # ever set during testing).
[2024-11-23T00:19:49.460Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.460Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.460Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] # params default might be backend specific.
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.460Z] else:
[2024-11-23T00:19:49.460Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbec0>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$SJNuwpTjKRAtOxsj6pqqdn$d8a0a645b0eb8d387cbf10db90922497', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_and_false>
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def setUp(self):
[2024-11-23T00:19:49.460Z] self.username = 'john'
[2024-11-23T00:19:49.460Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.460Z] self.password = 'password'
[2024-11-23T00:19:49.460Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.460Z] self.username,
[2024-11-23T00:19:49.460Z] self.email,
[2024-11-23T00:19:49.460Z] self.password
[2024-11-23T00:19:49.460Z] )
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.460Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.460Z] user.save(using=self._db)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.460Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.460Z] self.save_base(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.460Z] updated = self._save_table(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.460Z] results = self._do_insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.460Z] return manager._insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.460Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.460Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.460Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.460Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.460Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.460Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c8cbec0>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$SJNuwpTjKRAtOxsj6pqqdn$d8a0a645b0eb8d387cbf10db90922497', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z] ________________ PermissionsCompositionTests.test_and_lazyness _________________
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac6f90>
[2024-11-23T00:19:49.460Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$67gBsvwaEfbHHxOpkug7eu$d0ef324124c770d7e2869a121fb25a52', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac6f90>})
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.460Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.460Z] # ever set during testing).
[2024-11-23T00:19:49.460Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.460Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.460Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] # params default might be backend specific.
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.460Z] else:
[2024-11-23T00:19:49.460Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$67gBsvwaEfbHHxOpkug7eu$d0ef324124c770d7e2869a121fb25a52', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_and_lazyness>
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def setUp(self):
[2024-11-23T00:19:49.460Z] self.username = 'john'
[2024-11-23T00:19:49.460Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.460Z] self.password = 'password'
[2024-11-23T00:19:49.460Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.460Z] self.username,
[2024-11-23T00:19:49.460Z] self.email,
[2024-11-23T00:19:49.460Z] self.password
[2024-11-23T00:19:49.460Z] )
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.460Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.460Z] user.save(using=self._db)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.460Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.460Z] self.save_base(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.460Z] updated = self._save_table(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.460Z] results = self._do_insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.460Z] return manager._insert(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.460Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.460Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.460Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.460Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.460Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.460Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$67gBsvwaEfbHHxOpkug7eu$d0ef324124c770d7e2869a121fb25a52', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z] __________________ PermissionsCompositionTests.test_and_true ___________________
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac5a90>
[2024-11-23T00:19:49.460Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$eBT4b5GYREFhUSGBCEDCQo$12ee73b590e7655df077ddda6181e010', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac5a90>})
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.460Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.460Z] # ever set during testing).
[2024-11-23T00:19:49.460Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.460Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.460Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.460Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] # params default might be backend specific.
[2024-11-23T00:19:49.460Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.460Z] else:
[2024-11-23T00:19:49.460Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.460Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.460Z] params = ('md5$eBT4b5GYREFhUSGBCEDCQo$12ee73b590e7655df077ddda6181e010', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.460Z] if params is None:
[2024-11-23T00:19:49.460Z] return super().execute(query)
[2024-11-23T00:19:49.460Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.460Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.460Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.460Z] > return super().execute(query, params)
[2024-11-23T00:19:49.460Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_and_true>
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] def setUp(self):
[2024-11-23T00:19:49.460Z] self.username = 'john'
[2024-11-23T00:19:49.460Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.460Z] self.password = 'password'
[2024-11-23T00:19:49.460Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.460Z] self.username,
[2024-11-23T00:19:49.460Z] self.email,
[2024-11-23T00:19:49.460Z] self.password
[2024-11-23T00:19:49.460Z] )
[2024-11-23T00:19:49.460Z]
[2024-11-23T00:19:49.460Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.460Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.460Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.460Z] user.save(using=self._db)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.460Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.460Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.460Z] self.save_base(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.461Z] updated = self._save_table(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.461Z] results = self._do_insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.461Z] return manager._insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.461Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.461Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.461Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.461Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.461Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.461Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$eBT4b5GYREFhUSGBCEDCQo$12ee73b590e7655df077ddda6181e010', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z] __________________ PermissionsCompositionTests.test_not_false __________________
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c5ada30>
[2024-11-23T00:19:49.461Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$Bro0y1aUCuE59tgztVwFkm$f3cbe707fcb18fb4fb49b7509c21a780', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c5ada30>})
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.461Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.461Z] # ever set during testing).
[2024-11-23T00:19:49.461Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.461Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.461Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] # params default might be backend specific.
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.461Z] else:
[2024-11-23T00:19:49.461Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68c320>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$Bro0y1aUCuE59tgztVwFkm$f3cbe707fcb18fb4fb49b7509c21a780', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_not_false>
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def setUp(self):
[2024-11-23T00:19:49.461Z] self.username = 'john'
[2024-11-23T00:19:49.461Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.461Z] self.password = 'password'
[2024-11-23T00:19:49.461Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.461Z] self.username,
[2024-11-23T00:19:49.461Z] self.email,
[2024-11-23T00:19:49.461Z] self.password
[2024-11-23T00:19:49.461Z] )
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.461Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.461Z] user.save(using=self._db)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.461Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.461Z] self.save_base(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.461Z] updated = self._save_table(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.461Z] results = self._do_insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.461Z] return manager._insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.461Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.461Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.461Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.461Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.461Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.461Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68c320>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$Bro0y1aUCuE59tgztVwFkm$f3cbe707fcb18fb4fb49b7509c21a780', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z] __________________ PermissionsCompositionTests.test_not_true ___________________
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cadc110>
[2024-11-23T00:19:49.461Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$fjRfcpSRDiwWyeyEjKGBAP$f57092fad814b5ee70a59de7934b4ba4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cadc110>})
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.461Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.461Z] # ever set during testing).
[2024-11-23T00:19:49.461Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.461Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.461Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] # params default might be backend specific.
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.461Z] else:
[2024-11-23T00:19:49.461Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$fjRfcpSRDiwWyeyEjKGBAP$f57092fad814b5ee70a59de7934b4ba4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_not_true>
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def setUp(self):
[2024-11-23T00:19:49.461Z] self.username = 'john'
[2024-11-23T00:19:49.461Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.461Z] self.password = 'password'
[2024-11-23T00:19:49.461Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.461Z] self.username,
[2024-11-23T00:19:49.461Z] self.email,
[2024-11-23T00:19:49.461Z] self.password
[2024-11-23T00:19:49.461Z] )
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.461Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.461Z] user.save(using=self._db)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.461Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.461Z] self.save_base(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.461Z] updated = self._save_table(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.461Z] results = self._do_insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.461Z] return manager._insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.461Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.461Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.461Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.461Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.461Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.461Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$fjRfcpSRDiwWyeyEjKGBAP$f57092fad814b5ee70a59de7934b4ba4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z] _____________ PermissionsCompositionTests.test_object_and_lazyness _____________
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cadebd0>
[2024-11-23T00:19:49.461Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$nkpz5cqlhB7cHNtJIcqaE0$7e6d7ba34167cfad3f489e07d9c3ead4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cadebd0>})
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.461Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.461Z] # ever set during testing).
[2024-11-23T00:19:49.461Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.461Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.461Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] # params default might be backend specific.
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.461Z] else:
[2024-11-23T00:19:49.461Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d130>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$nkpz5cqlhB7cHNtJIcqaE0$7e6d7ba34167cfad3f489e07d9c3ead4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_object_and_lazyness>
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def setUp(self):
[2024-11-23T00:19:49.461Z] self.username = 'john'
[2024-11-23T00:19:49.461Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.461Z] self.password = 'password'
[2024-11-23T00:19:49.461Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.461Z] self.username,
[2024-11-23T00:19:49.461Z] self.email,
[2024-11-23T00:19:49.461Z] self.password
[2024-11-23T00:19:49.461Z] )
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.461Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.461Z] user.save(using=self._db)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.461Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.461Z] self.save_base(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.461Z] updated = self._save_table(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.461Z] results = self._do_insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.461Z] return manager._insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.461Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.461Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.461Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.461Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.461Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.461Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d130>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$nkpz5cqlhB7cHNtJIcqaE0$7e6d7ba34167cfad3f489e07d9c3ead4', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z] _____________ PermissionsCompositionTests.test_object_or_lazyness ______________
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cadd790>
[2024-11-23T00:19:49.461Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$4yrv9eqIzXGy27eF3kHS18$cf6e428c2660615cbcc71efc22878fe3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cadd790>})
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.461Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.461Z] # ever set during testing).
[2024-11-23T00:19:49.461Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.461Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.461Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] # params default might be backend specific.
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.461Z] else:
[2024-11-23T00:19:49.461Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d0a0>
[2024-11-23T00:19:49.461Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.461Z] params = ('md5$4yrv9eqIzXGy27eF3kHS18$cf6e428c2660615cbcc71efc22878fe3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.461Z] if params is None:
[2024-11-23T00:19:49.461Z] return super().execute(query)
[2024-11-23T00:19:49.461Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.461Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.461Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.461Z] > return super().execute(query, params)
[2024-11-23T00:19:49.461Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_object_or_lazyness>
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] def setUp(self):
[2024-11-23T00:19:49.461Z] self.username = 'john'
[2024-11-23T00:19:49.461Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.461Z] self.password = 'password'
[2024-11-23T00:19:49.461Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.461Z] self.username,
[2024-11-23T00:19:49.461Z] self.email,
[2024-11-23T00:19:49.461Z] self.password
[2024-11-23T00:19:49.461Z] )
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.461Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.461Z] user.save(using=self._db)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.461Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.461Z] self.save_base(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.461Z] updated = self._save_table(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.461Z] results = self._do_insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.461Z] return manager._insert(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.461Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.461Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.461Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.461Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.461Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.461Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.461Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.461Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.461Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.461Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.461Z]
[2024-11-23T00:19:49.461Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d0a0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$4yrv9eqIzXGy27eF3kHS18$cf6e428c2660615cbcc71efc22878fe3', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z] __________________ PermissionsCompositionTests.test_or_false ___________________
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521caf4050>
[2024-11-23T00:19:49.462Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$aIQdnD7WgjQKBS5fycqoxn$7bce2c4ce8d3e0e94e39bbfa7eb4b7c1', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521caf4050>})
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.462Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.462Z] # ever set during testing).
[2024-11-23T00:19:49.462Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.462Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.462Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] # params default might be backend specific.
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.462Z] else:
[2024-11-23T00:19:49.462Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$aIQdnD7WgjQKBS5fycqoxn$7bce2c4ce8d3e0e94e39bbfa7eb4b7c1', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_or_false>
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def setUp(self):
[2024-11-23T00:19:49.462Z] self.username = 'john'
[2024-11-23T00:19:49.462Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.462Z] self.password = 'password'
[2024-11-23T00:19:49.462Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.462Z] self.username,
[2024-11-23T00:19:49.462Z] self.email,
[2024-11-23T00:19:49.462Z] self.password
[2024-11-23T00:19:49.462Z] )
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.462Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.462Z] user.save(using=self._db)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.462Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.462Z] self.save_base(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.462Z] updated = self._save_table(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.462Z] results = self._do_insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.462Z] return manager._insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.462Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.462Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.462Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.462Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.462Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.462Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$aIQdnD7WgjQKBS5fycqoxn$7bce2c4ce8d3e0e94e39bbfa7eb4b7c1', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z] _________________ PermissionsCompositionTests.test_or_lazyness _________________
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521caf5a30>
[2024-11-23T00:19:49.462Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$QhGa0CSnRzw22XD62x1qbD$e3d235f70c55116672c28da866bfcb85', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521caf5a30>})
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.462Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.462Z] # ever set during testing).
[2024-11-23T00:19:49.462Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.462Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.462Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] # params default might be backend specific.
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.462Z] else:
[2024-11-23T00:19:49.462Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$QhGa0CSnRzw22XD62x1qbD$e3d235f70c55116672c28da866bfcb85', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_or_lazyness>
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def setUp(self):
[2024-11-23T00:19:49.462Z] self.username = 'john'
[2024-11-23T00:19:49.462Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.462Z] self.password = 'password'
[2024-11-23T00:19:49.462Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.462Z] self.username,
[2024-11-23T00:19:49.462Z] self.email,
[2024-11-23T00:19:49.462Z] self.password
[2024-11-23T00:19:49.462Z] )
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.462Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.462Z] user.save(using=self._db)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.462Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.462Z] self.save_base(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.462Z] updated = self._save_table(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.462Z] results = self._do_insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.462Z] return manager._insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.462Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.462Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.462Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.462Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.462Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.462Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$QhGa0CSnRzw22XD62x1qbD$e3d235f70c55116672c28da866bfcb85', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z] ___________________ PermissionsCompositionTests.test_or_true ___________________
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb14770>
[2024-11-23T00:19:49.462Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$h02vWaR5fy2DAH9cErnaPZ$e663524b1cb88437873587f24eb68a39', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb14770>})
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.462Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.462Z] # ever set during testing).
[2024-11-23T00:19:49.462Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.462Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.462Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] # params default might be backend specific.
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.462Z] else:
[2024-11-23T00:19:49.462Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d6d0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$h02vWaR5fy2DAH9cErnaPZ$e663524b1cb88437873587f24eb68a39', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_or_true>
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def setUp(self):
[2024-11-23T00:19:49.462Z] self.username = 'john'
[2024-11-23T00:19:49.462Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.462Z] self.password = 'password'
[2024-11-23T00:19:49.462Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.462Z] self.username,
[2024-11-23T00:19:49.462Z] self.email,
[2024-11-23T00:19:49.462Z] self.password
[2024-11-23T00:19:49.462Z] )
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.462Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.462Z] user.save(using=self._db)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.462Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.462Z] self.save_base(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.462Z] updated = self._save_table(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.462Z] results = self._do_insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.462Z] return manager._insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.462Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.462Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.462Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.462Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.462Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.462Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d6d0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$h02vWaR5fy2DAH9cErnaPZ$e663524b1cb88437873587f24eb68a39', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z] ________ PermissionsCompositionTests.test_several_levels_and_precedence ________
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb15790>
[2024-11-23T00:19:49.462Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$pn6lUj650gDPv1DKgJOWWJ$be1ffc888481c271a175ef6413b002c7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb15790>})
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.462Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.462Z] # ever set during testing).
[2024-11-23T00:19:49.462Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.462Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.462Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] # params default might be backend specific.
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.462Z] else:
[2024-11-23T00:19:49.462Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68fbf0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$pn6lUj650gDPv1DKgJOWWJ$be1ffc888481c271a175ef6413b002c7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_several_levels_and_precedence>
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def setUp(self):
[2024-11-23T00:19:49.462Z] self.username = 'john'
[2024-11-23T00:19:49.462Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.462Z] self.password = 'password'
[2024-11-23T00:19:49.462Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.462Z] self.username,
[2024-11-23T00:19:49.462Z] self.email,
[2024-11-23T00:19:49.462Z] self.password
[2024-11-23T00:19:49.462Z] )
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.462Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.462Z] user.save(using=self._db)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.462Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.462Z] self.save_base(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.462Z] updated = self._save_table(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.462Z] results = self._do_insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.462Z] return manager._insert(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.462Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.462Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.462Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.462Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.462Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.462Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.462Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.462Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.462Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.462Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68fbf0>
[2024-11-23T00:19:49.462Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.462Z] params = ('md5$pn6lUj650gDPv1DKgJOWWJ$be1ffc888481c271a175ef6413b002c7', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.462Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.462Z] if params is None:
[2024-11-23T00:19:49.462Z] return super().execute(query)
[2024-11-23T00:19:49.462Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.462Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.462Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.462Z] > return super().execute(query, params)
[2024-11-23T00:19:49.462Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.462Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z] _ PermissionsCompositionTests.test_several_levels_and_precedence_with_negation _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb15730>
[2024-11-23T00:19:49.463Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$rf5bTEZiqy7JgHFJ9mQUxc$b073d9d0c36f9e9d105aa8f9b296e5cf', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb15730>})
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.463Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.463Z] # ever set during testing).
[2024-11-23T00:19:49.463Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.463Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.463Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] # params default might be backend specific.
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.463Z] else:
[2024-11-23T00:19:49.463Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d6d0>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$rf5bTEZiqy7JgHFJ9mQUxc$b073d9d0c36f9e9d105aa8f9b296e5cf', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_several_levels_and_precedence_with_negation>
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def setUp(self):
[2024-11-23T00:19:49.463Z] self.username = 'john'
[2024-11-23T00:19:49.463Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.463Z] self.password = 'password'
[2024-11-23T00:19:49.463Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.463Z] self.username,
[2024-11-23T00:19:49.463Z] self.email,
[2024-11-23T00:19:49.463Z] self.password
[2024-11-23T00:19:49.463Z] )
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.463Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.463Z] user.save(using=self._db)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.463Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.463Z] self.save_base(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.463Z] updated = self._save_table(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.463Z] results = self._do_insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.463Z] return manager._insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.463Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.463Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.463Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.463Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.463Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.463Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68d6d0>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$rf5bTEZiqy7JgHFJ9mQUxc$b073d9d0c36f9e9d105aa8f9b296e5cf', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z] _______ PermissionsCompositionTests.test_several_levels_without_negation _______
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb16450>
[2024-11-23T00:19:49.463Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$QmGJKW4egFMj6UQfzXzFMA$9fffc0554cf924286cb47ef12c6ce723', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb16450>})
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.463Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.463Z] # ever set during testing).
[2024-11-23T00:19:49.463Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.463Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.463Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] # params default might be backend specific.
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.463Z] else:
[2024-11-23T00:19:49.463Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0168d0>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$QmGJKW4egFMj6UQfzXzFMA$9fffc0554cf924286cb47ef12c6ce723', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_several_levels_without_negation>
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def setUp(self):
[2024-11-23T00:19:49.463Z] self.username = 'john'
[2024-11-23T00:19:49.463Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.463Z] self.password = 'password'
[2024-11-23T00:19:49.463Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.463Z] self.username,
[2024-11-23T00:19:49.463Z] self.email,
[2024-11-23T00:19:49.463Z] self.password
[2024-11-23T00:19:49.463Z] )
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.463Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.463Z] user.save(using=self._db)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.463Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.463Z] self.save_base(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.463Z] updated = self._save_table(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.463Z] results = self._do_insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.463Z] return manager._insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.463Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.463Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.463Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.463Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.463Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.463Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0168d0>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$QmGJKW4egFMj6UQfzXzFMA$9fffc0554cf924286cb47ef12c6ce723', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z] _____ PermissionsCompositionTests.test_unimplemented_has_object_permission _____
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521caf6f30>
[2024-11-23T00:19:49.463Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$ivK05lte2PFDfxCB7t4LTy$5b0e89f0584b319beb17ccebada7fe63', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521caf6f30>})
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.463Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.463Z] # ever set during testing).
[2024-11-23T00:19:49.463Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.463Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.463Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] # params default might be backend specific.
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.463Z] else:
[2024-11-23T00:19:49.463Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c014d40>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$ivK05lte2PFDfxCB7t4LTy$5b0e89f0584b319beb17ccebada7fe63', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <tests.test_permissions.PermissionsCompositionTests testMethod=test_unimplemented_has_object_permission>
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def setUp(self):
[2024-11-23T00:19:49.463Z] self.username = 'john'
[2024-11-23T00:19:49.463Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.463Z] self.password = 'password'
[2024-11-23T00:19:49.463Z] > self.user = User.objects.create_user(
[2024-11-23T00:19:49.463Z] self.username,
[2024-11-23T00:19:49.463Z] self.email,
[2024-11-23T00:19:49.463Z] self.password
[2024-11-23T00:19:49.463Z] )
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] tests/test_permissions.py:551:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.463Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.463Z] user.save(using=self._db)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.463Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.463Z] self.save_base(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.463Z] updated = self._save_table(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.463Z] results = self._do_insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.463Z] return manager._insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.463Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.463Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.463Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.463Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.463Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.463Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c014d40>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('md5$ivK05lte2PFDfxCB7t4LTy$5b0e89f0584b319beb17ccebada7fe63', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z] _ TestPrefetchRelatedUpdates.test_prefetch_related_excluding_instance_from_original_queryset _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521caf76b0>
[2024-11-23T00:19:49.463Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T00:19:49.463Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521caf76b0>})
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.463Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.463Z] # ever set during testing).
[2024-11-23T00:19:49.463Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.463Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.463Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] # params default might be backend specific.
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.463Z] else:
[2024-11-23T00:19:49.463Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016180>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <tests.test_prefetch_related.TestPrefetchRelatedUpdates testMethod=test_prefetch_related_excluding_instance_from_original_queryset>
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def setUp(self):
[2024-11-23T00:19:49.463Z] > self.user = User.objects.create(username='tom', email='tom at example.com')
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] tests/test_prefetch_related.py:23:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.463Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.463Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.463Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.463Z] self.save_base(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.463Z] updated = self._save_table(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.463Z] results = self._do_insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.463Z] return manager._insert(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.463Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.463Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.463Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.463Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.463Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.463Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016180>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.463Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.463Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.463Z] > return super().execute(query, params)
[2024-11-23T00:19:49.463Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.463Z] ___________ TestPrefetchRelatedUpdates.test_prefetch_related_updates ___________
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb19010>
[2024-11-23T00:19:49.463Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T00:19:49.463Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb19010>})
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.463Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.463Z] # ever set during testing).
[2024-11-23T00:19:49.463Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.463Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.463Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.463Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] # params default might be backend specific.
[2024-11-23T00:19:49.463Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.463Z] else:
[2024-11-23T00:19:49.463Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.463Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016b10>
[2024-11-23T00:19:49.463Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.463Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T00:19:49.463Z]
[2024-11-23T00:19:49.463Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.463Z] if params is None:
[2024-11-23T00:19:49.463Z] return super().execute(query)
[2024-11-23T00:19:49.463Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <tests.test_prefetch_related.TestPrefetchRelatedUpdates testMethod=test_prefetch_related_updates>
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def setUp(self):
[2024-11-23T00:19:49.464Z] > self.user = User.objects.create(username='tom', email='tom at example.com')
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] tests/test_prefetch_related.py:23:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.464Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.464Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.464Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.464Z] self.save_base(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.464Z] updated = self._save_table(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.464Z] results = self._do_insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.464Z] return manager._insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.464Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.464Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.464Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.464Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.464Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.464Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c016b10>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.464Z] params = ('', None, False, 'tom', '', '', ...)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z] _____________ HyperlinkedManyToManyTests.test_many_to_many_create ______________
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521be962d0>
[2024-11-23T00:19:49.464Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521be962d0>})
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.464Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.464Z] # ever set during testing).
[2024-11-23T00:19:49.464Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.464Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.464Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] # params default might be backend specific.
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.464Z] else:
[2024-11-23T00:19:49.464Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0179b0>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_create>
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def setUp(self):
[2024-11-23T00:19:49.464Z] for idx in range(1, 4):
[2024-11-23T00:19:49.464Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.464Z] > target.save()
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.464Z] self.save_base(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.464Z] updated = self._save_table(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.464Z] results = self._do_insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.464Z] return manager._insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.464Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.464Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.464Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.464Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.464Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.464Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0179b0>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z] ____________ HyperlinkedManyToManyTests.test_many_to_many_retrieve _____________
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf4c290>
[2024-11-23T00:19:49.464Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf4c290>})
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.464Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.464Z] # ever set during testing).
[2024-11-23T00:19:49.464Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.464Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.464Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] # params default might be backend specific.
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.464Z] else:
[2024-11-23T00:19:49.464Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_retrieve>
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def setUp(self):
[2024-11-23T00:19:49.464Z] for idx in range(1, 4):
[2024-11-23T00:19:49.464Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.464Z] > target.save()
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.464Z] self.save_base(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.464Z] updated = self._save_table(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.464Z] results = self._do_insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.464Z] return manager._insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.464Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.464Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.464Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.464Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.464Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.464Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68f9b0>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z] ____ HyperlinkedManyToManyTests.test_many_to_many_retrieve_prefetch_related ____
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf4c590>
[2024-11-23T00:19:49.464Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf4c590>})
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.464Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.464Z] # ever set during testing).
[2024-11-23T00:19:49.464Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.464Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.464Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] # params default might be backend specific.
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.464Z] else:
[2024-11-23T00:19:49.464Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee0f0>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_retrieve_prefetch_related>
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def setUp(self):
[2024-11-23T00:19:49.464Z] for idx in range(1, 4):
[2024-11-23T00:19:49.464Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.464Z] > target.save()
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.464Z] self.save_base(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.464Z] updated = self._save_table(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.464Z] results = self._do_insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.464Z] return manager._insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.464Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.464Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.464Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.464Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.464Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.464Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee0f0>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z] _____________ HyperlinkedManyToManyTests.test_many_to_many_update ______________
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c030bf0>
[2024-11-23T00:19:49.464Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c030bf0>})
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.464Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.464Z] # ever set during testing).
[2024-11-23T00:19:49.464Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.464Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.464Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] # params default might be backend specific.
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.464Z] else:
[2024-11-23T00:19:49.464Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_many_to_many_update>
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def setUp(self):
[2024-11-23T00:19:49.464Z] for idx in range(1, 4):
[2024-11-23T00:19:49.464Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.464Z] > target.save()
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.464Z] self.save_base(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.464Z] updated = self._save_table(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.464Z] results = self._do_insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.464Z] return manager._insert(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.464Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.464Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.464Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.464Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.464Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.464Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.464Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.464Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.464Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.464Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.464Z] if params is None:
[2024-11-23T00:19:49.464Z] return super().execute(query)
[2024-11-23T00:19:49.464Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.464Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.464Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.464Z] > return super().execute(query, params)
[2024-11-23T00:19:49.464Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.464Z] _____________ HyperlinkedManyToManyTests.test_relative_hyperlinks ______________
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0306b0>
[2024-11-23T00:19:49.464Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.464Z] params = ('target-1',)
[2024-11-23T00:19:49.464Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0306b0>})
[2024-11-23T00:19:49.464Z]
[2024-11-23T00:19:49.464Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.464Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.464Z] # ever set during testing).
[2024-11-23T00:19:49.464Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.465Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.465Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] # params default might be backend specific.
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.465Z] else:
[2024-11-23T00:19:49.465Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_relative_hyperlinks>
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def setUp(self):
[2024-11-23T00:19:49.465Z] for idx in range(1, 4):
[2024-11-23T00:19:49.465Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.465Z] > target.save()
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.465Z] self.save_base(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.465Z] updated = self._save_table(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.465Z] results = self._do_insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.465Z] return manager._insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.465Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.465Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.465Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.465Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.465Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.465Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68e7b0>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z] _________ HyperlinkedManyToManyTests.test_reverse_many_to_many_create __________
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c007230>
[2024-11-23T00:19:49.465Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c007230>})
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.465Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.465Z] # ever set during testing).
[2024-11-23T00:19:49.465Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.465Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.465Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] # params default might be backend specific.
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.465Z] else:
[2024-11-23T00:19:49.465Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c017a40>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_reverse_many_to_many_create>
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def setUp(self):
[2024-11-23T00:19:49.465Z] for idx in range(1, 4):
[2024-11-23T00:19:49.465Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.465Z] > target.save()
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.465Z] self.save_base(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.465Z] updated = self._save_table(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.465Z] results = self._do_insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.465Z] return manager._insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.465Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.465Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.465Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.465Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.465Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.465Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c017a40>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z] ________ HyperlinkedManyToManyTests.test_reverse_many_to_many_retrieve _________
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c006630>
[2024-11-23T00:19:49.465Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c006630>})
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.465Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.465Z] # ever set during testing).
[2024-11-23T00:19:49.465Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.465Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.465Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] # params default might be backend specific.
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.465Z] else:
[2024-11-23T00:19:49.465Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee450>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_reverse_many_to_many_retrieve>
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def setUp(self):
[2024-11-23T00:19:49.465Z] for idx in range(1, 4):
[2024-11-23T00:19:49.465Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.465Z] > target.save()
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.465Z] self.save_base(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.465Z] updated = self._save_table(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.465Z] results = self._do_insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.465Z] return manager._insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.465Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.465Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.465Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.465Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.465Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.465Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee450>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z] _________ HyperlinkedManyToManyTests.test_reverse_many_to_many_update __________
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521be94110>
[2024-11-23T00:19:49.465Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521be94110>})
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.465Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.465Z] # ever set during testing).
[2024-11-23T00:19:49.465Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.465Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.465Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] # params default might be backend specific.
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.465Z] else:
[2024-11-23T00:19:49.465Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee180>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <tests.test_relations_hyperlink.HyperlinkedManyToManyTests testMethod=test_reverse_many_to_many_update>
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def setUp(self):
[2024-11-23T00:19:49.465Z] for idx in range(1, 4):
[2024-11-23T00:19:49.465Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.465Z] > target.save()
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] tests/test_relations_hyperlink.py:77:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.465Z] self.save_base(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.465Z] updated = self._save_table(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.465Z] results = self._do_insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.465Z] return manager._insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.465Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.465Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.465Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.465Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.465Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.465Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee180>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z] ______________ HyperlinkedForeignKeyTests.test_foreign_key_create ______________
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac7290>
[2024-11-23T00:19:49.465Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac7290>})
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.465Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.465Z] # ever set during testing).
[2024-11-23T00:19:49.465Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.465Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.465Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] # params default might be backend specific.
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.465Z] else:
[2024-11-23T00:19:49.465Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.465Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.465Z] > return super().execute(query, params)
[2024-11-23T00:19:49.465Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_create>
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def setUp(self):
[2024-11-23T00:19:49.465Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.465Z] > target.save()
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.465Z] self.save_base(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.465Z] updated = self._save_table(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.465Z] results = self._do_insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.465Z] return manager._insert(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.465Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.465Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.465Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.465Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.465Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.465Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.465Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.465Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.465Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.465Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c68df40>
[2024-11-23T00:19:49.465Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.465Z] params = ('target-1',)
[2024-11-23T00:19:49.465Z]
[2024-11-23T00:19:49.465Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.465Z] if params is None:
[2024-11-23T00:19:49.465Z] return super().execute(query)
[2024-11-23T00:19:49.465Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.465Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.466Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.466Z] > return super().execute(query, params)
[2024-11-23T00:19:49.466Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.466Z] _____________ HyperlinkedForeignKeyTests.test_foreign_key_retrieve _____________
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf4d250>
[2024-11-23T00:19:49.466Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.466Z] params = ('target-1',)
[2024-11-23T00:19:49.466Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf4d250>})
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.466Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.466Z] # ever set during testing).
[2024-11-23T00:19:49.466Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.466Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.466Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.466Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.466Z] if params is None:
[2024-11-23T00:19:49.466Z] # params default might be backend specific.
[2024-11-23T00:19:49.466Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.466Z] else:
[2024-11-23T00:19:49.466Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.466Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfeee70>
[2024-11-23T00:19:49.466Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.466Z] params = ('target-1',)
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.466Z] if params is None:
[2024-11-23T00:19:49.466Z] return super().execute(query)
[2024-11-23T00:19:49.466Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.466Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.466Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.466Z] > return super().execute(query, params)
[2024-11-23T00:19:49.466Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_retrieve>
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] def setUp(self):
[2024-11-23T00:19:49.466Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.466Z] > target.save()
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.466Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.466Z] self.save_base(
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.466Z] updated = self._save_table(
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.466Z] results = self._do_insert(
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.466Z] return manager._insert(
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.466Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.466Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.466Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.466Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.466Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.466Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.466Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.466Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.466Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfeee70>
[2024-11-23T00:19:49.466Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.466Z] params = ('target-1',)
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.466Z] if params is None:
[2024-11-23T00:19:49.466Z] return super().execute(query)
[2024-11-23T00:19:49.466Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.466Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.466Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.466Z] > return super().execute(query, params)
[2024-11-23T00:19:49.466Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.466Z] ______________ HyperlinkedForeignKeyTests.test_foreign_key_update ______________
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf4ee10>
[2024-11-23T00:19:49.466Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.466Z] params = ('target-1',)
[2024-11-23T00:19:49.466Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf4ee10>})
[2024-11-23T00:19:49.466Z]
[2024-11-23T00:19:49.466Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.466Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.466Z] # ever set during testing).
[2024-11-23T00:19:49.716Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.716Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.716Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.716Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.716Z] if params is None:
[2024-11-23T00:19:49.716Z] # params default might be backend specific.
[2024-11-23T00:19:49.716Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.716Z] else:
[2024-11-23T00:19:49.716Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.716Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfef4a0>
[2024-11-23T00:19:49.716Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.716Z] params = ('target-1',)
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.716Z] if params is None:
[2024-11-23T00:19:49.716Z] return super().execute(query)
[2024-11-23T00:19:49.716Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.716Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.716Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.716Z] > return super().execute(query, params)
[2024-11-23T00:19:49.716Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_update>
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] def setUp(self):
[2024-11-23T00:19:49.716Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.716Z] > target.save()
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.716Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.716Z] self.save_base(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.716Z] updated = self._save_table(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.716Z] results = self._do_insert(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.716Z] return manager._insert(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.716Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.716Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.716Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.716Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.716Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.716Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.716Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.716Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.716Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfef4a0>
[2024-11-23T00:19:49.716Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.716Z] params = ('target-1',)
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.716Z] if params is None:
[2024-11-23T00:19:49.716Z] return super().execute(query)
[2024-11-23T00:19:49.716Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.716Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.716Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.716Z] > return super().execute(query, params)
[2024-11-23T00:19:49.716Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.716Z] ______ HyperlinkedForeignKeyTests.test_foreign_key_update_incorrect_type _______
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c031430>
[2024-11-23T00:19:49.716Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.716Z] params = ('target-1',)
[2024-11-23T00:19:49.716Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c031430>})
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.716Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.716Z] # ever set during testing).
[2024-11-23T00:19:49.716Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.716Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.716Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.716Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.716Z] if params is None:
[2024-11-23T00:19:49.716Z] # params default might be backend specific.
[2024-11-23T00:19:49.716Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.716Z] else:
[2024-11-23T00:19:49.716Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.716Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfef2f0>
[2024-11-23T00:19:49.716Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.716Z] params = ('target-1',)
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.716Z] if params is None:
[2024-11-23T00:19:49.716Z] return super().execute(query)
[2024-11-23T00:19:49.716Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.716Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.716Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.716Z] > return super().execute(query, params)
[2024-11-23T00:19:49.716Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_update_incorrect_type>
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] def setUp(self):
[2024-11-23T00:19:49.716Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.716Z] > target.save()
[2024-11-23T00:19:49.716Z]
[2024-11-23T00:19:49.716Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.716Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.716Z] self.save_base(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.716Z] updated = self._save_table(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.716Z] results = self._do_insert(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.716Z] return manager._insert(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.716Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.716Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.716Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.716Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.716Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.716Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.716Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.717Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfef2f0>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z] _____ HyperlinkedForeignKeyTests.test_foreign_key_update_with_invalid_null _____
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0317f0>
[2024-11-23T00:19:49.717Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0317f0>})
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.717Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.717Z] # ever set during testing).
[2024-11-23T00:19:49.717Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.717Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.717Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] # params default might be backend specific.
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.717Z] else:
[2024-11-23T00:19:49.717Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfed5b0>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_foreign_key_update_with_invalid_null>
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def setUp(self):
[2024-11-23T00:19:49.717Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.717Z] > target.save()
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.717Z] self.save_base(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.717Z] updated = self._save_table(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.717Z] results = self._do_insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.717Z] return manager._insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.717Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.717Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.717Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.717Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.717Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.717Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfed5b0>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z] __________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_create __________
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0067b0>
[2024-11-23T00:19:49.717Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0067b0>})
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.717Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.717Z] # ever set during testing).
[2024-11-23T00:19:49.717Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.717Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.717Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] # params default might be backend specific.
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.717Z] else:
[2024-11-23T00:19:49.717Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefb60>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_reverse_foreign_key_create>
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def setUp(self):
[2024-11-23T00:19:49.717Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.717Z] > target.save()
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.717Z] self.save_base(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.717Z] updated = self._save_table(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.717Z] results = self._do_insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.717Z] return manager._insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.717Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.717Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.717Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.717Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.717Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.717Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefb60>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z] _________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_retrieve _________
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c005a90>
[2024-11-23T00:19:49.717Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c005a90>})
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.717Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.717Z] # ever set during testing).
[2024-11-23T00:19:49.717Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.717Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.717Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] # params default might be backend specific.
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.717Z] else:
[2024-11-23T00:19:49.717Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfeeba0>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_reverse_foreign_key_retrieve>
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def setUp(self):
[2024-11-23T00:19:49.717Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.717Z] > target.save()
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.717Z] self.save_base(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.717Z] updated = self._save_table(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.717Z] results = self._do_insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.717Z] return manager._insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.717Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.717Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.717Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.717Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.717Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.717Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfeeba0>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z] __________ HyperlinkedForeignKeyTests.test_reverse_foreign_key_update __________
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb1a750>
[2024-11-23T00:19:49.717Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb1a750>})
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.717Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.717Z] # ever set during testing).
[2024-11-23T00:19:49.717Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.717Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.717Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] # params default might be backend specific.
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.717Z] else:
[2024-11-23T00:19:49.717Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefe30>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <tests.test_relations_hyperlink.HyperlinkedForeignKeyTests testMethod=test_reverse_foreign_key_update>
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def setUp(self):
[2024-11-23T00:19:49.717Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.717Z] > target.save()
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] tests/test_relations_hyperlink.py:201:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.717Z] self.save_base(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.717Z] updated = self._save_table(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.717Z] results = self._do_insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.717Z] return manager._insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.717Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.717Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.717Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.717Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.717Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.717Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefe30>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z] _ HyperlinkedNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521caf7a70>
[2024-11-23T00:19:49.717Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521caf7a70>})
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.717Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.717Z] # ever set during testing).
[2024-11-23T00:19:49.717Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.717Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.717Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] # params default might be backend specific.
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.717Z] else:
[2024-11-23T00:19:49.717Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee720>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.717Z] if params is None:
[2024-11-23T00:19:49.717Z] return super().execute(query)
[2024-11-23T00:19:49.717Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.717Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.717Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.717Z] > return super().execute(query, params)
[2024-11-23T00:19:49.717Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_emptystring>
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] def setUp(self):
[2024-11-23T00:19:49.717Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.717Z] > target.save()
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.717Z] self.save_base(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.717Z] updated = self._save_table(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.717Z] results = self._do_insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.717Z] return manager._insert(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.717Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.717Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.717Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.717Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.717Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.717Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.717Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.717Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.717Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.717Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.717Z]
[2024-11-23T00:19:49.717Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee720>
[2024-11-23T00:19:49.717Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.717Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z] __ HyperlinkedNullableForeignKeyTests.test_foreign_key_create_with_valid_null __
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521be95e50>
[2024-11-23T00:19:49.718Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521be95e50>})
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.718Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.718Z] # ever set during testing).
[2024-11-23T00:19:49.718Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.718Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.718Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] # params default might be backend specific.
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.718Z] else:
[2024-11-23T00:19:49.718Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefbf0>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_null>
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def setUp(self):
[2024-11-23T00:19:49.718Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.718Z] > target.save()
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.718Z] self.save_base(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.718Z] updated = self._save_table(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.718Z] results = self._do_insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.718Z] return manager._insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.718Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.718Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.718Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.718Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.718Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.718Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefbf0>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z] ____ HyperlinkedNullableForeignKeyTests.test_foreign_key_retrieve_with_null ____
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c018230>
[2024-11-23T00:19:49.718Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c018230>})
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.718Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.718Z] # ever set during testing).
[2024-11-23T00:19:49.718Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.718Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.718Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] # params default might be backend specific.
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.718Z] else:
[2024-11-23T00:19:49.718Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee180>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_retrieve_with_null>
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def setUp(self):
[2024-11-23T00:19:49.718Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.718Z] > target.save()
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.718Z] self.save_base(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.718Z] updated = self._save_table(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.718Z] results = self._do_insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.718Z] return manager._insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.718Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.718Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.718Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.718Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.718Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.718Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee180>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z] _ HyperlinkedNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c01bef0>
[2024-11-23T00:19:49.718Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c01bef0>})
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.718Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.718Z] # ever set during testing).
[2024-11-23T00:19:49.718Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.718Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.718Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] # params default might be backend specific.
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.718Z] else:
[2024-11-23T00:19:49.718Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfedeb0>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_emptystring>
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def setUp(self):
[2024-11-23T00:19:49.718Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.718Z] > target.save()
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.718Z] self.save_base(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.718Z] updated = self._save_table(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.718Z] results = self._do_insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.718Z] return manager._insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.718Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.718Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.718Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.718Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.718Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.718Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfedeb0>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z] __ HyperlinkedNullableForeignKeyTests.test_foreign_key_update_with_valid_null __
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c019cd0>
[2024-11-23T00:19:49.718Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c019cd0>})
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.718Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.718Z] # ever set during testing).
[2024-11-23T00:19:49.718Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.718Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.718Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] # params default might be backend specific.
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.718Z] else:
[2024-11-23T00:19:49.718Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfed880>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_null>
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def setUp(self):
[2024-11-23T00:19:49.718Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.718Z] > target.save()
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] tests/test_relations_hyperlink.py:330:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.718Z] self.save_base(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.718Z] updated = self._save_table(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.718Z] results = self._do_insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.718Z] return manager._insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.718Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.718Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.718Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.718Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.718Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.718Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfed880>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z] _ HyperlinkedNullableOneToOneTests.test_reverse_foreign_key_retrieve_with_null _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c031430>
[2024-11-23T00:19:49.718Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c031430>})
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.718Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.718Z] # ever set during testing).
[2024-11-23T00:19:49.718Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.718Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.718Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.718Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] # params default might be backend specific.
[2024-11-23T00:19:49.718Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.718Z] else:
[2024-11-23T00:19:49.718Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfedeb0>
[2024-11-23T00:19:49.718Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.718Z] params = ('target-1',)
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.718Z] if params is None:
[2024-11-23T00:19:49.718Z] return super().execute(query)
[2024-11-23T00:19:49.718Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.718Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.718Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.718Z] > return super().execute(query, params)
[2024-11-23T00:19:49.718Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] self = <tests.test_relations_hyperlink.HyperlinkedNullableOneToOneTests testMethod=test_reverse_foreign_key_retrieve_with_null>
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] def setUp(self):
[2024-11-23T00:19:49.718Z] target = OneToOneTarget(name='target-1')
[2024-11-23T00:19:49.718Z] > target.save()
[2024-11-23T00:19:49.718Z]
[2024-11-23T00:19:49.718Z] tests/test_relations_hyperlink.py:436:
[2024-11-23T00:19:49.718Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.718Z] self.save_base(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.718Z] updated = self._save_table(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.718Z] results = self._do_insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.718Z] return manager._insert(
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.718Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.718Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.719Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.719Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.719Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.719Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.719Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfedeb0>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z] __________________ PKManyToManyTests.test_many_to_many_create __________________
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb1a6f0>
[2024-11-23T00:19:49.719Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb1a6f0>})
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.719Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.719Z] # ever set during testing).
[2024-11-23T00:19:49.719Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.719Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.719Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] # params default might be backend specific.
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.719Z] else:
[2024-11-23T00:19:49.719Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caece60>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_create>
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def setUp(self):
[2024-11-23T00:19:49.719Z] for idx in range(1, 4):
[2024-11-23T00:19:49.719Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.719Z] > target.save()
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.719Z] self.save_base(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.719Z] updated = self._save_table(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.719Z] results = self._do_insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.719Z] return manager._insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.719Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.719Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.719Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.719Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.719Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.719Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caece60>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z] _________________ PKManyToManyTests.test_many_to_many_retrieve _________________
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac1fd0>
[2024-11-23T00:19:49.719Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac1fd0>})
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.719Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.719Z] # ever set during testing).
[2024-11-23T00:19:49.719Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.719Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.719Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] # params default might be backend specific.
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.719Z] else:
[2024-11-23T00:19:49.719Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfedeb0>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_retrieve>
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def setUp(self):
[2024-11-23T00:19:49.719Z] for idx in range(1, 4):
[2024-11-23T00:19:49.719Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.719Z] > target.save()
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.719Z] self.save_base(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.719Z] updated = self._save_table(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.719Z] results = self._do_insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.719Z] return manager._insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.719Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.719Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.719Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.719Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.719Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.719Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfedeb0>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z] ________ PKManyToManyTests.test_many_to_many_retrieve_prefetch_related _________
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac2930>
[2024-11-23T00:19:49.719Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac2930>})
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.719Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.719Z] # ever set during testing).
[2024-11-23T00:19:49.719Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.719Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.719Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] # params default might be backend specific.
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.719Z] else:
[2024-11-23T00:19:49.719Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caed400>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_retrieve_prefetch_related>
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def setUp(self):
[2024-11-23T00:19:49.719Z] for idx in range(1, 4):
[2024-11-23T00:19:49.719Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.719Z] > target.save()
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.719Z] self.save_base(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.719Z] updated = self._save_table(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.719Z] results = self._do_insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.719Z] return manager._insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.719Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.719Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.719Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.719Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.719Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.719Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caed400>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z] _________________ PKManyToManyTests.test_many_to_many_unsaved __________________
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c030110>
[2024-11-23T00:19:49.719Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c030110>})
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.719Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.719Z] # ever set during testing).
[2024-11-23T00:19:49.719Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.719Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.719Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] # params default might be backend specific.
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.719Z] else:
[2024-11-23T00:19:49.719Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c014a70>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_unsaved>
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def setUp(self):
[2024-11-23T00:19:49.719Z] for idx in range(1, 4):
[2024-11-23T00:19:49.719Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.719Z] > target.save()
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.719Z] self.save_base(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.719Z] updated = self._save_table(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.719Z] results = self._do_insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.719Z] return manager._insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.719Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.719Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.719Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.719Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.719Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.719Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c014a70>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z] __________________ PKManyToManyTests.test_many_to_many_update __________________
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac24b0>
[2024-11-23T00:19:49.719Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac24b0>})
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.719Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.719Z] # ever set during testing).
[2024-11-23T00:19:49.719Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.719Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.719Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.719Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] # params default might be backend specific.
[2024-11-23T00:19:49.719Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.719Z] else:
[2024-11-23T00:19:49.719Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfeecc0>
[2024-11-23T00:19:49.719Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.719Z] params = ('target-1',)
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.719Z] if params is None:
[2024-11-23T00:19:49.719Z] return super().execute(query)
[2024-11-23T00:19:49.719Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.719Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.719Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.719Z] > return super().execute(query, params)
[2024-11-23T00:19:49.719Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_many_to_many_update>
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] def setUp(self):
[2024-11-23T00:19:49.719Z] for idx in range(1, 4):
[2024-11-23T00:19:49.719Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.719Z] > target.save()
[2024-11-23T00:19:49.719Z]
[2024-11-23T00:19:49.719Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.719Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.719Z] self.save_base(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.719Z] updated = self._save_table(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.719Z] results = self._do_insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.719Z] return manager._insert(
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.719Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.719Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.719Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.719Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.719Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.720Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.720Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfeecc0>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z] ______________ PKManyToManyTests.test_reverse_many_to_many_create ______________
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cac2e10>
[2024-11-23T00:19:49.720Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cac2e10>})
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.720Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.720Z] # ever set during testing).
[2024-11-23T00:19:49.720Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.720Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.720Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] # params default might be backend specific.
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.720Z] else:
[2024-11-23T00:19:49.720Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfed520>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_reverse_many_to_many_create>
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def setUp(self):
[2024-11-23T00:19:49.720Z] for idx in range(1, 4):
[2024-11-23T00:19:49.720Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.720Z] > target.save()
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.720Z] self.save_base(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.720Z] updated = self._save_table(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.720Z] results = self._do_insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.720Z] return manager._insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.720Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.720Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.720Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.720Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.720Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.720Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfed520>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z] _____________ PKManyToManyTests.test_reverse_many_to_many_retrieve _____________
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb4d430>
[2024-11-23T00:19:49.720Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb4d430>})
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.720Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.720Z] # ever set during testing).
[2024-11-23T00:19:49.720Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.720Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.720Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] # params default might be backend specific.
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.720Z] else:
[2024-11-23T00:19:49.720Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfede20>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_reverse_many_to_many_retrieve>
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def setUp(self):
[2024-11-23T00:19:49.720Z] for idx in range(1, 4):
[2024-11-23T00:19:49.720Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.720Z] > target.save()
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.720Z] self.save_base(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.720Z] updated = self._save_table(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.720Z] results = self._do_insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.720Z] return manager._insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.720Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.720Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.720Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.720Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.720Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.720Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfede20>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z] ______________ PKManyToManyTests.test_reverse_many_to_many_update ______________
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb4dbb0>
[2024-11-23T00:19:49.720Z] sql = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (%s) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb4dbb0>})
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.720Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.720Z] # ever set during testing).
[2024-11-23T00:19:49.720Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.720Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.720Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] # params default might be backend specific.
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.720Z] else:
[2024-11-23T00:19:49.720Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee180>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E sqlite3.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <tests.test_relations_pk.PKManyToManyTests testMethod=test_reverse_many_to_many_update>
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def setUp(self):
[2024-11-23T00:19:49.720Z] for idx in range(1, 4):
[2024-11-23T00:19:49.720Z] target = ManyToManyTarget(name='target-%d' % idx)
[2024-11-23T00:19:49.720Z] > target.save()
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] tests/test_relations_pk.py:103:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.720Z] self.save_base(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.720Z] updated = self._save_table(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.720Z] results = self._do_insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.720Z] return manager._insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.720Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.720Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.720Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.720Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.720Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.720Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee180>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_manytomanytarget" ("name") VALUES (?) RETURNING "tests_manytomanytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z] __________________ PKForeignKeyTests.test_foreign_key_create ___________________
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb4d910>
[2024-11-23T00:19:49.720Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb4d910>})
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.720Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.720Z] # ever set during testing).
[2024-11-23T00:19:49.720Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.720Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.720Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] # params default might be backend specific.
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.720Z] else:
[2024-11-23T00:19:49.720Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee450>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_create>
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def setUp(self):
[2024-11-23T00:19:49.720Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.720Z] > target.save()
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.720Z] self.save_base(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.720Z] updated = self._save_table(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.720Z] results = self._do_insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.720Z] return manager._insert(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.720Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.720Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.720Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.720Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.720Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.720Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee450>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z] _______________ PKForeignKeyTests.test_foreign_key_not_required ________________
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb4eff0>
[2024-11-23T00:19:49.720Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb4eff0>})
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.720Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.720Z] # ever set during testing).
[2024-11-23T00:19:49.720Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.720Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.720Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.720Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] # params default might be backend specific.
[2024-11-23T00:19:49.720Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.720Z] else:
[2024-11-23T00:19:49.720Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.720Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeda30>
[2024-11-23T00:19:49.720Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.720Z] params = ('target-1',)
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.720Z] if params is None:
[2024-11-23T00:19:49.720Z] return super().execute(query)
[2024-11-23T00:19:49.720Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.720Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.720Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.720Z] > return super().execute(query, params)
[2024-11-23T00:19:49.720Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_not_required>
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.720Z] def setUp(self):
[2024-11-23T00:19:49.720Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.720Z] > target.save()
[2024-11-23T00:19:49.720Z]
[2024-11-23T00:19:49.721Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.721Z] self.save_base(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.721Z] updated = self._save_table(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.721Z] results = self._do_insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.721Z] return manager._insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.721Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.721Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.721Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.721Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.721Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.721Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeda30>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z] _________________ PKForeignKeyTests.test_foreign_key_retrieve __________________
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb31490>
[2024-11-23T00:19:49.721Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb31490>})
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.721Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.721Z] # ever set during testing).
[2024-11-23T00:19:49.721Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.721Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.721Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] # params default might be backend specific.
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.721Z] else:
[2024-11-23T00:19:49.721Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caec5f0>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_retrieve>
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def setUp(self):
[2024-11-23T00:19:49.721Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.721Z] > target.save()
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.721Z] self.save_base(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.721Z] updated = self._save_table(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.721Z] results = self._do_insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.721Z] return manager._insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.721Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.721Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.721Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.721Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.721Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.721Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caec5f0>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z] __________________ PKForeignKeyTests.test_foreign_key_update ___________________
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb30530>
[2024-11-23T00:19:49.721Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb30530>})
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.721Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.721Z] # ever set during testing).
[2024-11-23T00:19:49.721Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.721Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.721Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] # params default might be backend specific.
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.721Z] else:
[2024-11-23T00:19:49.721Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caee4e0>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_update>
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def setUp(self):
[2024-11-23T00:19:49.721Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.721Z] > target.save()
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.721Z] self.save_base(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.721Z] updated = self._save_table(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.721Z] results = self._do_insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.721Z] return manager._insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.721Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.721Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.721Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.721Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.721Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.721Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caee4e0>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z] ___________ PKForeignKeyTests.test_foreign_key_update_incorrect_type ___________
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb31790>
[2024-11-23T00:19:49.721Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb31790>})
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.721Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.721Z] # ever set during testing).
[2024-11-23T00:19:49.721Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.721Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.721Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] # params default might be backend specific.
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.721Z] else:
[2024-11-23T00:19:49.721Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caee720>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_update_incorrect_type>
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def setUp(self):
[2024-11-23T00:19:49.721Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.721Z] > target.save()
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.721Z] self.save_base(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.721Z] updated = self._save_table(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.721Z] results = self._do_insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.721Z] return manager._insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.721Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.721Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.721Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.721Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.721Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.721Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caee720>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z] _________ PKForeignKeyTests.test_foreign_key_update_with_invalid_null __________
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb310d0>
[2024-11-23T00:19:49.721Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb310d0>})
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.721Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.721Z] # ever set during testing).
[2024-11-23T00:19:49.721Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.721Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.721Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] # params default might be backend specific.
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.721Z] else:
[2024-11-23T00:19:49.721Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caec710>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_update_with_invalid_null>
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def setUp(self):
[2024-11-23T00:19:49.721Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.721Z] > target.save()
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.721Z] self.save_base(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.721Z] updated = self._save_table(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.721Z] results = self._do_insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.721Z] return manager._insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.721Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.721Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.721Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.721Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.721Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.721Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caec710>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z] ________________ PKForeignKeyTests.test_foreign_key_with_empty _________________
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb31e50>
[2024-11-23T00:19:49.721Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb31e50>})
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.721Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.721Z] # ever set during testing).
[2024-11-23T00:19:49.721Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.721Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.721Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.721Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] # params default might be backend specific.
[2024-11-23T00:19:49.721Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.721Z] else:
[2024-11-23T00:19:49.721Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.721Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.721Z] params = ('target-1',)
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.721Z] if params is None:
[2024-11-23T00:19:49.721Z] return super().execute(query)
[2024-11-23T00:19:49.721Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.721Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.721Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.721Z] > return super().execute(query, params)
[2024-11-23T00:19:49.721Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_with_empty>
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] def setUp(self):
[2024-11-23T00:19:49.721Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.721Z] > target.save()
[2024-11-23T00:19:49.721Z]
[2024-11-23T00:19:49.721Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.721Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.721Z] self.save_base(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.721Z] updated = self._save_table(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.721Z] results = self._do_insert(
[2024-11-23T00:19:49.721Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.721Z] return manager._insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.722Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.722Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.722Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.722Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.722Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.722Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z] _______________ PKForeignKeyTests.test_foreign_key_with_unsaved ________________
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c03b8f0>
[2024-11-23T00:19:49.722Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c03b8f0>})
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.722Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.722Z] # ever set during testing).
[2024-11-23T00:19:49.722Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.722Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.722Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] # params default might be backend specific.
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.722Z] else:
[2024-11-23T00:19:49.722Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeea80>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_foreign_key_with_unsaved>
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def setUp(self):
[2024-11-23T00:19:49.722Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.722Z] > target.save()
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.722Z] self.save_base(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.722Z] updated = self._save_table(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.722Z] results = self._do_insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.722Z] return manager._insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.722Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.722Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.722Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.722Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.722Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.722Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeea80>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z] _________ PKForeignKeyTests.test_queryset_size_with_Q_limited_choices __________
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0387d0>
[2024-11-23T00:19:49.722Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0387d0>})
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.722Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.722Z] # ever set during testing).
[2024-11-23T00:19:49.722Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.722Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.722Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] # params default might be backend specific.
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.722Z] else:
[2024-11-23T00:19:49.722Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caec320>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_queryset_size_with_Q_limited_choices>
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def setUp(self):
[2024-11-23T00:19:49.722Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.722Z] > target.save()
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.722Z] self.save_base(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.722Z] updated = self._save_table(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.722Z] results = self._do_insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.722Z] return manager._insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.722Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.722Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.722Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.722Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.722Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.722Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caec320>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z] __________ PKForeignKeyTests.test_queryset_size_with_limited_choices ___________
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c039550>
[2024-11-23T00:19:49.722Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c039550>})
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.722Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.722Z] # ever set during testing).
[2024-11-23T00:19:49.722Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.722Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.722Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] # params default might be backend specific.
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.722Z] else:
[2024-11-23T00:19:49.722Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caef380>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_queryset_size_with_limited_choices>
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def setUp(self):
[2024-11-23T00:19:49.722Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.722Z] > target.save()
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.722Z] self.save_base(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.722Z] updated = self._save_table(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.722Z] results = self._do_insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.722Z] return manager._insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.722Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.722Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.722Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.722Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.722Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.722Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caef380>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z] _________ PKForeignKeyTests.test_queryset_size_without_limited_choices _________
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c039730>
[2024-11-23T00:19:49.722Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c039730>})
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.722Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.722Z] # ever set during testing).
[2024-11-23T00:19:49.722Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.722Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.722Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] # params default might be backend specific.
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.722Z] else:
[2024-11-23T00:19:49.722Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecd40>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_queryset_size_without_limited_choices>
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def setUp(self):
[2024-11-23T00:19:49.722Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.722Z] > target.save()
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.722Z] self.save_base(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.722Z] updated = self._save_table(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.722Z] results = self._do_insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.722Z] return manager._insert(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.722Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.722Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.722Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.722Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.722Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.722Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecd40>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z] ______________ PKForeignKeyTests.test_reverse_foreign_key_create _______________
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c0397f0>
[2024-11-23T00:19:49.722Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c0397f0>})
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.722Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.722Z] # ever set during testing).
[2024-11-23T00:19:49.722Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.722Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.722Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.722Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] # params default might be backend specific.
[2024-11-23T00:19:49.722Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.722Z] else:
[2024-11-23T00:19:49.722Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefa40>
[2024-11-23T00:19:49.722Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.722Z] params = ('target-1',)
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.722Z] if params is None:
[2024-11-23T00:19:49.722Z] return super().execute(query)
[2024-11-23T00:19:49.722Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.722Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.722Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.722Z] > return super().execute(query, params)
[2024-11-23T00:19:49.722Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_create>
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] def setUp(self):
[2024-11-23T00:19:49.722Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.722Z] > target.save()
[2024-11-23T00:19:49.722Z]
[2024-11-23T00:19:49.722Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.722Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.722Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.722Z] self.save_base(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.723Z] updated = self._save_table(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.723Z] results = self._do_insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.723Z] return manager._insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.723Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.723Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.723Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.723Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.723Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefa40>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z] _____________ PKForeignKeyTests.test_reverse_foreign_key_retrieve ______________
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bfad070>
[2024-11-23T00:19:49.723Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bfad070>})
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.723Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.723Z] # ever set during testing).
[2024-11-23T00:19:49.723Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.723Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.723Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] # params default might be backend specific.
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.723Z] else:
[2024-11-23T00:19:49.723Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caef800>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_retrieve>
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def setUp(self):
[2024-11-23T00:19:49.723Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.723Z] > target.save()
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.723Z] self.save_base(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.723Z] updated = self._save_table(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.723Z] results = self._do_insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.723Z] return manager._insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.723Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.723Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.723Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.723Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.723Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caef800>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z] _____ PKForeignKeyTests.test_reverse_foreign_key_retrieve_prefetch_related _____
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bfadc10>
[2024-11-23T00:19:49.723Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bfadc10>})
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.723Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.723Z] # ever set during testing).
[2024-11-23T00:19:49.723Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.723Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.723Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] # params default might be backend specific.
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.723Z] else:
[2024-11-23T00:19:49.723Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecf80>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_retrieve_prefetch_related>
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def setUp(self):
[2024-11-23T00:19:49.723Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.723Z] > target.save()
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.723Z] self.save_base(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.723Z] updated = self._save_table(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.723Z] results = self._do_insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.723Z] return manager._insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.723Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.723Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.723Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.723Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.723Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecf80>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z] ______________ PKForeignKeyTests.test_reverse_foreign_key_update _______________
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bfaddf0>
[2024-11-23T00:19:49.723Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bfaddf0>})
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.723Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.723Z] # ever set during testing).
[2024-11-23T00:19:49.723Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.723Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.723Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] # params default might be backend specific.
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.723Z] else:
[2024-11-23T00:19:49.723Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecb90>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <tests.test_relations_pk.PKForeignKeyTests testMethod=test_reverse_foreign_key_update>
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def setUp(self):
[2024-11-23T00:19:49.723Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.723Z] > target.save()
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] tests/test_relations_pk.py:225:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.723Z] self.save_base(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.723Z] updated = self._save_table(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.723Z] results = self._do_insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.723Z] return manager._insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.723Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.723Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.723Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.723Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.723Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecb90>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z] _____________ PKRelationTests.test_relation_field_callable_source ______________
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bfaeb70>
[2024-11-23T00:19:49.723Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bfaeb70>})
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.723Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.723Z] # ever set during testing).
[2024-11-23T00:19:49.723Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.723Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.723Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] # params default might be backend specific.
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.723Z] else:
[2024-11-23T00:19:49.723Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caef020>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <tests.test_relations_pk.PKRelationTests testMethod=test_relation_field_callable_source>
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def setUp(self):
[2024-11-23T00:19:49.723Z] > self.target = ForeignKeyTarget.objects.create(name='target-1')
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] tests/test_relations_pk.py:414:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.723Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.723Z] self.save_base(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.723Z] updated = self._save_table(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.723Z] results = self._do_insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.723Z] return manager._insert(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.723Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.723Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.723Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.723Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.723Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caef020>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z] _____________ PKRelationTests.test_relation_field_property_source ______________
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c03c6b0>
[2024-11-23T00:19:49.723Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c03c6b0>})
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.723Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.723Z] # ever set during testing).
[2024-11-23T00:19:49.723Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.723Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.723Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.723Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] # params default might be backend specific.
[2024-11-23T00:19:49.723Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.723Z] else:
[2024-11-23T00:19:49.723Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefad0>
[2024-11-23T00:19:49.723Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.723Z] params = ('target-1',)
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.723Z] if params is None:
[2024-11-23T00:19:49.723Z] return super().execute(query)
[2024-11-23T00:19:49.723Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.723Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.723Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.723Z] > return super().execute(query, params)
[2024-11-23T00:19:49.723Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] self = <tests.test_relations_pk.PKRelationTests testMethod=test_relation_field_property_source>
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] def setUp(self):
[2024-11-23T00:19:49.723Z] > self.target = ForeignKeyTarget.objects.create(name='target-1')
[2024-11-23T00:19:49.723Z]
[2024-11-23T00:19:49.723Z] tests/test_relations_pk.py:414:
[2024-11-23T00:19:49.723Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.723Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.723Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.723Z] self.save_base(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.723Z] updated = self._save_table(
[2024-11-23T00:19:49.723Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.723Z] results = self._do_insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.724Z] return manager._insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.724Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.724Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.724Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.724Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.724Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.724Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefad0>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z] ___ PKNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring ___
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521cb31c10>
[2024-11-23T00:19:49.724Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521cb31c10>})
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.724Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.724Z] # ever set during testing).
[2024-11-23T00:19:49.724Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.724Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.724Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] # params default might be backend specific.
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.724Z] else:
[2024-11-23T00:19:49.724Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefbf0>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_emptystring>
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def setUp(self):
[2024-11-23T00:19:49.724Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.724Z] > target.save()
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.724Z] self.save_base(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.724Z] updated = self._save_table(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.724Z] results = self._do_insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.724Z] return manager._insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.724Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.724Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.724Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.724Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.724Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.724Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfefbf0>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z] ______ PKNullableForeignKeyTests.test_foreign_key_create_with_valid_null _______
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c03d3d0>
[2024-11-23T00:19:49.724Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c03d3d0>})
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.724Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.724Z] # ever set during testing).
[2024-11-23T00:19:49.724Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.724Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.724Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] # params default might be backend specific.
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.724Z] else:
[2024-11-23T00:19:49.724Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee720>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_null>
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def setUp(self):
[2024-11-23T00:19:49.724Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.724Z] > target.save()
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.724Z] self.save_base(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.724Z] updated = self._save_table(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.724Z] results = self._do_insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.724Z] return manager._insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.724Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.724Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.724Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.724Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.724Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.724Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee720>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z] ________ PKNullableForeignKeyTests.test_foreign_key_retrieve_with_null _________
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c03ccb0>
[2024-11-23T00:19:49.724Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c03ccb0>})
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.724Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.724Z] # ever set during testing).
[2024-11-23T00:19:49.724Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.724Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.724Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] # params default might be backend specific.
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.724Z] else:
[2024-11-23T00:19:49.724Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caed6d0>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_retrieve_with_null>
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def setUp(self):
[2024-11-23T00:19:49.724Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.724Z] > target.save()
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.724Z] self.save_base(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.724Z] updated = self._save_table(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.724Z] results = self._do_insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.724Z] return manager._insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.724Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.724Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.724Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.724Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.724Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.724Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caed6d0>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z] ___ PKNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring ___
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c03df70>
[2024-11-23T00:19:49.724Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c03df70>})
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.724Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.724Z] # ever set during testing).
[2024-11-23T00:19:49.724Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.724Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.724Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] # params default might be backend specific.
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.724Z] else:
[2024-11-23T00:19:49.724Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeff50>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_emptystring>
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def setUp(self):
[2024-11-23T00:19:49.724Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.724Z] > target.save()
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.724Z] self.save_base(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.724Z] updated = self._save_table(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.724Z] results = self._do_insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.724Z] return manager._insert(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.724Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.724Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.724Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.724Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.724Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.724Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeff50>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.724Z] ______ PKNullableForeignKeyTests.test_foreign_key_update_with_valid_null _______
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521c03cd70>
[2024-11-23T00:19:49.724Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521c03cd70>})
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.724Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.724Z] # ever set during testing).
[2024-11-23T00:19:49.724Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.724Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.724Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.724Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] # params default might be backend specific.
[2024-11-23T00:19:49.724Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.724Z] else:
[2024-11-23T00:19:49.724Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.724Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefd10>
[2024-11-23T00:19:49.724Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.724Z] params = ('target-1',)
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.724Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.724Z] if params is None:
[2024-11-23T00:19:49.724Z] return super().execute(query)
[2024-11-23T00:19:49.724Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.724Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.724Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.724Z] > return super().execute(query, params)
[2024-11-23T00:19:49.724Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.724Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_null>
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def setUp(self):
[2024-11-23T00:19:49.725Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.725Z] > target.save()
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.725Z] self.save_base(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.725Z] updated = self._save_table(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.725Z] results = self._do_insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.725Z] return manager._insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.725Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.725Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.725Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.725Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.725Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.725Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefd10>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z] ___ PKNullableForeignKeyTests.test_null_uuid_foreign_key_serializes_as_none ____
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf59910>
[2024-11-23T00:19:49.725Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf59910>})
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.725Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.725Z] # ever set during testing).
[2024-11-23T00:19:49.725Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.725Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.725Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] # params default might be backend specific.
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.725Z] else:
[2024-11-23T00:19:49.725Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_null_uuid_foreign_key_serializes_as_none>
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def setUp(self):
[2024-11-23T00:19:49.725Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.725Z] > target.save()
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.725Z] self.save_base(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.725Z] updated = self._save_table(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.725Z] results = self._do_insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.725Z] return manager._insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.725Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.725Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.725Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.725Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.725Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.725Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z] _ PKNullableForeignKeyTests.test_nullable_uuid_foreign_key_is_valid_when_none __
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf5a2d0>
[2024-11-23T00:19:49.725Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf5a2d0>})
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.725Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.725Z] # ever set during testing).
[2024-11-23T00:19:49.725Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.725Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.725Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] # params default might be backend specific.
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.725Z] else:
[2024-11-23T00:19:49.725Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecd40>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <tests.test_relations_pk.PKNullableForeignKeyTests testMethod=test_nullable_uuid_foreign_key_is_valid_when_none>
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def setUp(self):
[2024-11-23T00:19:49.725Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.725Z] > target.save()
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] tests/test_relations_pk.py:442:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.725Z] self.save_base(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.725Z] updated = self._save_table(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.725Z] results = self._do_insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.725Z] return manager._insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.725Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.725Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.725Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.725Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.725Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.725Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caecd40>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z] _____ PKNullableOneToOneTests.test_reverse_foreign_key_retrieve_with_null ______
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf59df0>
[2024-11-23T00:19:49.725Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf59df0>})
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.725Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.725Z] # ever set during testing).
[2024-11-23T00:19:49.725Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.725Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.725Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] # params default might be backend specific.
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.725Z] else:
[2024-11-23T00:19:49.725Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfede20>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <tests.test_relations_pk.PKNullableOneToOneTests testMethod=test_reverse_foreign_key_retrieve_with_null>
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def setUp(self):
[2024-11-23T00:19:49.725Z] target = OneToOneTarget(name='target-1')
[2024-11-23T00:19:49.725Z] > target.save()
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] tests/test_relations_pk.py:558:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.725Z] self.save_base(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.725Z] updated = self._save_table(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.725Z] results = self._do_insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.725Z] return manager._insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.725Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.725Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.725Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.725Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.725Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.725Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfede20>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z] ___________ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key ___________
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf59cd0>
[2024-11-23T00:19:49.725Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf59cd0>})
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.725Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.725Z] # ever set during testing).
[2024-11-23T00:19:49.725Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.725Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.725Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] # params default might be backend specific.
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.725Z] else:
[2024-11-23T00:19:49.725Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caee060>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <tests.test_relations_pk.OneToOnePrimaryKeyTests testMethod=test_one_to_one_when_primary_key>
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def setUp(self):
[2024-11-23T00:19:49.725Z] # Given: Some target models already exist
[2024-11-23T00:19:49.725Z] self.target = target = OneToOneTarget(name='target-1')
[2024-11-23T00:19:49.725Z] > target.save()
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] tests/test_relations_pk.py:579:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.725Z] self.save_base(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.725Z] updated = self._save_table(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.725Z] results = self._do_insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.725Z] return manager._insert(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.725Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.725Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.725Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.725Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.725Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.725Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caee060>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] return super().execute(query)
[2024-11-23T00:19:49.725Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.725Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.725Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.725Z] > return super().execute(query, params)
[2024-11-23T00:19:49.725Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.725Z] ___ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key_does_not_exist ____
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf80410>
[2024-11-23T00:19:49.725Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf80410>})
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.725Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.725Z] # ever set during testing).
[2024-11-23T00:19:49.725Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.725Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.725Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.725Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.725Z] if params is None:
[2024-11-23T00:19:49.725Z] # params default might be backend specific.
[2024-11-23T00:19:49.725Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.725Z] else:
[2024-11-23T00:19:49.725Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.725Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.725Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008050>
[2024-11-23T00:19:49.725Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.725Z] params = ('target-1',)
[2024-11-23T00:19:49.725Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <tests.test_relations_pk.OneToOnePrimaryKeyTests testMethod=test_one_to_one_when_primary_key_does_not_exist>
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def setUp(self):
[2024-11-23T00:19:49.726Z] # Given: Some target models already exist
[2024-11-23T00:19:49.726Z] self.target = target = OneToOneTarget(name='target-1')
[2024-11-23T00:19:49.726Z] > target.save()
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] tests/test_relations_pk.py:579:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.726Z] self.save_base(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.726Z] updated = self._save_table(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.726Z] results = self._do_insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.726Z] return manager._insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.726Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.726Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.726Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.726Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.726Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.726Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008050>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z] ____ OneToOnePrimaryKeyTests.test_one_to_one_when_primary_key_no_duplicates ____
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf82990>
[2024-11-23T00:19:49.726Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf82990>})
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.726Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.726Z] # ever set during testing).
[2024-11-23T00:19:49.726Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.726Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.726Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] # params default might be backend specific.
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.726Z] else:
[2024-11-23T00:19:49.726Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009370>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <tests.test_relations_pk.OneToOnePrimaryKeyTests testMethod=test_one_to_one_when_primary_key_no_duplicates>
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def setUp(self):
[2024-11-23T00:19:49.726Z] # Given: Some target models already exist
[2024-11-23T00:19:49.726Z] self.target = target = OneToOneTarget(name='target-1')
[2024-11-23T00:19:49.726Z] > target.save()
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] tests/test_relations_pk.py:579:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.726Z] self.save_base(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.726Z] updated = self._save_table(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.726Z] results = self._do_insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.726Z] return manager._insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.726Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.726Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.726Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.726Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.726Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.726Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009370>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z] _________________ SlugForeignKeyTests.test_foreign_key_create __________________
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf83650>
[2024-11-23T00:19:49.726Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf83650>})
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.726Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.726Z] # ever set during testing).
[2024-11-23T00:19:49.726Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.726Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.726Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] # params default might be backend specific.
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.726Z] else:
[2024-11-23T00:19:49.726Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008290>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_create>
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def setUp(self):
[2024-11-23T00:19:49.726Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.726Z] > target.save()
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.726Z] self.save_base(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.726Z] updated = self._save_table(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.726Z] results = self._do_insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.726Z] return manager._insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.726Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.726Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.726Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.726Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.726Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.726Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008290>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z] ________________ SlugForeignKeyTests.test_foreign_key_retrieve _________________
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bea20f0>
[2024-11-23T00:19:49.726Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bea20f0>})
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.726Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.726Z] # ever set during testing).
[2024-11-23T00:19:49.726Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.726Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.726Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] # params default might be backend specific.
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.726Z] else:
[2024-11-23T00:19:49.726Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0089e0>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_retrieve>
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def setUp(self):
[2024-11-23T00:19:49.726Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.726Z] > target.save()
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.726Z] self.save_base(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.726Z] updated = self._save_table(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.726Z] results = self._do_insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.726Z] return manager._insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.726Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.726Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.726Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.726Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.726Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.726Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0089e0>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z] _________ SlugForeignKeyTests.test_foreign_key_retrieve_select_related _________
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bea09b0>
[2024-11-23T00:19:49.726Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bea09b0>})
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.726Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.726Z] # ever set during testing).
[2024-11-23T00:19:49.726Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.726Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.726Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] # params default might be backend specific.
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.726Z] else:
[2024-11-23T00:19:49.726Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009eb0>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_retrieve_select_related>
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def setUp(self):
[2024-11-23T00:19:49.726Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.726Z] > target.save()
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.726Z] self.save_base(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.726Z] updated = self._save_table(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.726Z] results = self._do_insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.726Z] return manager._insert(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.726Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.726Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.726Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.726Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.726Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.726Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009eb0>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z] _________________ SlugForeignKeyTests.test_foreign_key_update __________________
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bea04d0>
[2024-11-23T00:19:49.726Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bea04d0>})
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.726Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.726Z] # ever set during testing).
[2024-11-23T00:19:49.726Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.726Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.726Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.726Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] # params default might be backend specific.
[2024-11-23T00:19:49.726Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.726Z] else:
[2024-11-23T00:19:49.726Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.726Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009f40>
[2024-11-23T00:19:49.726Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.726Z] params = ('target-1',)
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.726Z] if params is None:
[2024-11-23T00:19:49.726Z] return super().execute(query)
[2024-11-23T00:19:49.726Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.726Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.726Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.726Z] > return super().execute(query, params)
[2024-11-23T00:19:49.726Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.726Z]
[2024-11-23T00:19:49.726Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_update>
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def setUp(self):
[2024-11-23T00:19:49.727Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.727Z] > target.save()
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.727Z] self.save_base(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.727Z] updated = self._save_table(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.727Z] results = self._do_insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.727Z] return manager._insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.727Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.727Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.727Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.727Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.727Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.727Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009f40>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z] __________ SlugForeignKeyTests.test_foreign_key_update_incorrect_type __________
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bea1790>
[2024-11-23T00:19:49.727Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bea1790>})
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.727Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.727Z] # ever set during testing).
[2024-11-23T00:19:49.727Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.727Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.727Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] # params default might be backend specific.
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.727Z] else:
[2024-11-23T00:19:49.727Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a330>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_update_incorrect_type>
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def setUp(self):
[2024-11-23T00:19:49.727Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.727Z] > target.save()
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.727Z] self.save_base(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.727Z] updated = self._save_table(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.727Z] results = self._do_insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.727Z] return manager._insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.727Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.727Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.727Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.727Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.727Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.727Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a330>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z] ________ SlugForeignKeyTests.test_foreign_key_update_with_invalid_null _________
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bea27b0>
[2024-11-23T00:19:49.727Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bea27b0>})
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.727Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.727Z] # ever set during testing).
[2024-11-23T00:19:49.727Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.727Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.727Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] # params default might be backend specific.
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.727Z] else:
[2024-11-23T00:19:49.727Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a720>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_foreign_key_update_with_invalid_null>
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def setUp(self):
[2024-11-23T00:19:49.727Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.727Z] > target.save()
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.727Z] self.save_base(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.727Z] updated = self._save_table(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.727Z] results = self._do_insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.727Z] return manager._insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.727Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.727Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.727Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.727Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.727Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.727Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a720>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z] _____________ SlugForeignKeyTests.test_reverse_foreign_key_create ______________
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf30d70>
[2024-11-23T00:19:49.727Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf30d70>})
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.727Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.727Z] # ever set during testing).
[2024-11-23T00:19:49.727Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.727Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.727Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] # params default might be backend specific.
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.727Z] else:
[2024-11-23T00:19:49.727Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a450>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_create>
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def setUp(self):
[2024-11-23T00:19:49.727Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.727Z] > target.save()
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.727Z] self.save_base(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.727Z] updated = self._save_table(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.727Z] results = self._do_insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.727Z] return manager._insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.727Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.727Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.727Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.727Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.727Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.727Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a450>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z] ____________ SlugForeignKeyTests.test_reverse_foreign_key_retrieve _____________
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf31cd0>
[2024-11-23T00:19:49.727Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf31cd0>})
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.727Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.727Z] # ever set during testing).
[2024-11-23T00:19:49.727Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.727Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.727Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] # params default might be backend specific.
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.727Z] else:
[2024-11-23T00:19:49.727Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009b50>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_retrieve>
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def setUp(self):
[2024-11-23T00:19:49.727Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.727Z] > target.save()
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.727Z] self.save_base(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.727Z] updated = self._save_table(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.727Z] results = self._do_insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.727Z] return manager._insert(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.727Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.727Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.727Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.727Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.727Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.727Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009b50>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.727Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.727Z] > return super().execute(query, params)
[2024-11-23T00:19:49.727Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.727Z] ____ SlugForeignKeyTests.test_reverse_foreign_key_retrieve_prefetch_related ____
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf31a90>
[2024-11-23T00:19:49.727Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf31a90>})
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.727Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.727Z] # ever set during testing).
[2024-11-23T00:19:49.727Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.727Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.727Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.727Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] # params default might be backend specific.
[2024-11-23T00:19:49.727Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.727Z] else:
[2024-11-23T00:19:49.727Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.727Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009f40>
[2024-11-23T00:19:49.727Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.727Z] params = ('target-1',)
[2024-11-23T00:19:49.727Z]
[2024-11-23T00:19:49.727Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.727Z] if params is None:
[2024-11-23T00:19:49.727Z] return super().execute(query)
[2024-11-23T00:19:49.727Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.727Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_retrieve_prefetch_related>
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def setUp(self):
[2024-11-23T00:19:49.728Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.728Z] > target.save()
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.728Z] self.save_base(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.728Z] updated = self._save_table(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.728Z] results = self._do_insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.728Z] return manager._insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.728Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.728Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.728Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.728Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.728Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.728Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009f40>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z] _____________ SlugForeignKeyTests.test_reverse_foreign_key_update ______________
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf33530>
[2024-11-23T00:19:49.728Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf33530>})
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.728Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.728Z] # ever set during testing).
[2024-11-23T00:19:49.728Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.728Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.728Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] # params default might be backend specific.
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.728Z] else:
[2024-11-23T00:19:49.728Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008ef0>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <tests.test_relations_slug.SlugForeignKeyTests testMethod=test_reverse_foreign_key_update>
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def setUp(self):
[2024-11-23T00:19:49.728Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.728Z] > target.save()
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] tests/test_relations_slug.py:48:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.728Z] self.save_base(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.728Z] updated = self._save_table(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.728Z] results = self._do_insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.728Z] return manager._insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.728Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.728Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.728Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.728Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.728Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.728Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008ef0>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z] __ SlugNullableForeignKeyTests.test_foreign_key_create_with_valid_emptystring __
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf0e2d0>
[2024-11-23T00:19:49.728Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf0e2d0>})
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.728Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.728Z] # ever set during testing).
[2024-11-23T00:19:49.728Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.728Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.728Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] # params default might be backend specific.
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.728Z] else:
[2024-11-23T00:19:49.728Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00b260>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_emptystring>
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def setUp(self):
[2024-11-23T00:19:49.728Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.728Z] > target.save()
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] tests/test_relations_slug.py:188:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.728Z] self.save_base(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.728Z] updated = self._save_table(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.728Z] results = self._do_insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.728Z] return manager._insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.728Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.728Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.728Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.728Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.728Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.728Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00b260>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z] _____ SlugNullableForeignKeyTests.test_foreign_key_create_with_valid_null ______
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf0d910>
[2024-11-23T00:19:49.728Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf0d910>})
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.728Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.728Z] # ever set during testing).
[2024-11-23T00:19:49.728Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.728Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.728Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] # params default might be backend specific.
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.728Z] else:
[2024-11-23T00:19:49.728Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a180>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_create_with_valid_null>
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def setUp(self):
[2024-11-23T00:19:49.728Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.728Z] > target.save()
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] tests/test_relations_slug.py:188:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.728Z] self.save_base(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.728Z] updated = self._save_table(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.728Z] results = self._do_insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.728Z] return manager._insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.728Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.728Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.728Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.728Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.728Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.728Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a180>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z] _______ SlugNullableForeignKeyTests.test_foreign_key_retrieve_with_null ________
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf5ae70>
[2024-11-23T00:19:49.728Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf5ae70>})
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.728Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.728Z] # ever set during testing).
[2024-11-23T00:19:49.728Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.728Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.728Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] # params default might be backend specific.
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.728Z] else:
[2024-11-23T00:19:49.728Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefec0>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_retrieve_with_null>
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def setUp(self):
[2024-11-23T00:19:49.728Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.728Z] > target.save()
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] tests/test_relations_slug.py:188:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.728Z] self.save_base(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.728Z] updated = self._save_table(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.728Z] results = self._do_insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.728Z] return manager._insert(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.728Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.728Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.728Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.728Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.728Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.728Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefec0>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z] __ SlugNullableForeignKeyTests.test_foreign_key_update_with_valid_emptystring __
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf0d550>
[2024-11-23T00:19:49.728Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf0d550>})
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.728Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.728Z] # ever set during testing).
[2024-11-23T00:19:49.728Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.728Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.728Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.728Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] # params default might be backend specific.
[2024-11-23T00:19:49.728Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.728Z] else:
[2024-11-23T00:19:49.728Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.728Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee720>
[2024-11-23T00:19:49.728Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.728Z] params = ('target-1',)
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.728Z] if params is None:
[2024-11-23T00:19:49.728Z] return super().execute(query)
[2024-11-23T00:19:49.728Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.728Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.728Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.728Z] > return super().execute(query, params)
[2024-11-23T00:19:49.728Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_emptystring>
[2024-11-23T00:19:49.728Z]
[2024-11-23T00:19:49.728Z] def setUp(self):
[2024-11-23T00:19:49.728Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.729Z] > target.save()
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_relations_slug.py:188:
[2024-11-23T00:19:49.729Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.729Z] self.save_base(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.729Z] updated = self._save_table(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.729Z] results = self._do_insert(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.729Z] return manager._insert(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.729Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.729Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.729Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.729Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.729Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.729Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.729Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.729Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.729Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bfee720>
[2024-11-23T00:19:49.729Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.729Z] params = ('target-1',)
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.729Z] if params is None:
[2024-11-23T00:19:49.729Z] return super().execute(query)
[2024-11-23T00:19:49.729Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.729Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.729Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.729Z] > return super().execute(query, params)
[2024-11-23T00:19:49.729Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.729Z] _____ SlugNullableForeignKeyTests.test_foreign_key_update_with_valid_null ______
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bf0ce90>
[2024-11-23T00:19:49.729Z] sql = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (%s) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.729Z] params = ('target-1',)
[2024-11-23T00:19:49.729Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bf0ce90>})
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.729Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.729Z] # ever set during testing).
[2024-11-23T00:19:49.729Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.729Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.729Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.729Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.729Z] if params is None:
[2024-11-23T00:19:49.729Z] # params default might be backend specific.
[2024-11-23T00:19:49.729Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.729Z] else:
[2024-11-23T00:19:49.729Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.729Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caed490>
[2024-11-23T00:19:49.729Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.729Z] params = ('target-1',)
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.729Z] if params is None:
[2024-11-23T00:19:49.729Z] return super().execute(query)
[2024-11-23T00:19:49.729Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.729Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.729Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.729Z] > return super().execute(query, params)
[2024-11-23T00:19:49.729Z] E sqlite3.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_relations_slug.SlugNullableForeignKeyTests testMethod=test_foreign_key_update_with_valid_null>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def setUp(self):
[2024-11-23T00:19:49.729Z] target = ForeignKeyTarget(name='target-1')
[2024-11-23T00:19:49.729Z] > target.save()
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_relations_slug.py:188:
[2024-11-23T00:19:49.729Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.729Z] self.save_base(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.729Z] updated = self._save_table(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.729Z] results = self._do_insert(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.729Z] return manager._insert(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.729Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.729Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.729Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.729Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.729Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.729Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.729Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.729Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.729Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caed490>
[2024-11-23T00:19:49.729Z] query = 'INSERT INTO "tests_foreignkeytarget" ("name") VALUES (?) RETURNING "tests_foreignkeytarget"."id"'
[2024-11-23T00:19:49.729Z] params = ('target-1',)
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.729Z] if params is None:
[2024-11-23T00:19:49.729Z] return super().execute(query)
[2024-11-23T00:19:49.729Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.729Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.729Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.729Z] > return super().execute(query, params)
[2024-11-23T00:19:49.729Z] E django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_204_no_content_responses_have_no_content_type_set _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_204_no_content_responses_have_no_content_type_set>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_204_no_content_responses_have_no_content_type_set(self):
[2024-11-23T00:19:49.729Z] """
[2024-11-23T00:19:49.729Z] Regression test for #1196
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] https://github.com/encode/django-rest-framework/issues/1196
[2024-11-23T00:19:49.729Z] """
[2024-11-23T00:19:49.729Z] resp = self.client.get('/empty')
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp.get('Content-Type', None), None)
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != None
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:249: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /empty
[2024-11-23T00:19:49.729Z] _________ RendererEndToEndTests.test_contains_headers_of_api_response __________
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_contains_headers_of_api_response>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_contains_headers_of_api_response(self):
[2024-11-23T00:19:49.729Z] """
[2024-11-23T00:19:49.729Z] Issue #1437
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] Test we display the headers of the API response and not those from the
[2024-11-23T00:19:49.729Z] HTML response
[2024-11-23T00:19:49.729Z] """
[2024-11-23T00:19:49.729Z] resp = self.client.get('/html1')
[2024-11-23T00:19:49.729Z] > self.assertContains(resp, '>GET, HEAD, OPTIONS<')
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:260:
[2024-11-23T00:19:49.729Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:609: in assertContains
[2024-11-23T00:19:49.729Z] text_repr, real_count, msg_prefix, content_repr = self._assert_contains(
[2024-11-23T00:19:49.729Z] /usr/lib/python3.13/site-packages/django/test/testcases.py:571: in _assert_contains
[2024-11-23T00:19:49.729Z] self.assertEqual(
[2024-11-23T00:19:49.729Z] E AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200)
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /html1
[2024-11-23T00:19:49.729Z] ________ RendererEndToEndTests.test_default_renderer_serializes_content ________
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_default_renderer_serializes_content>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_default_renderer_serializes_content(self):
[2024-11-23T00:19:49.729Z] """If the Accept header is not set the default renderer should serialize the response."""
[2024-11-23T00:19:49.729Z] resp = self.client.get('/')
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:164: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_default_renderer_serializes_content_on_accept_any _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_default_renderer_serializes_content_on_accept_any>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_default_renderer_serializes_content_on_accept_any(self):
[2024-11-23T00:19:49.729Z] """If the Accept header is set to */* the default renderer should serialize the response."""
[2024-11-23T00:19:49.729Z] resp = self.client.get('/', HTTP_ACCEPT='*/*')
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:178: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.729Z] _________ RendererEndToEndTests.test_head_method_serializes_no_content _________
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_head_method_serializes_no_content>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_head_method_serializes_no_content(self):
[2024-11-23T00:19:49.729Z] """No response must be included in HEAD requests."""
[2024-11-23T00:19:49.729Z] resp = self.client.head('/')
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp.status_code, DUMMYSTATUS)
[2024-11-23T00:19:49.729Z] E AssertionError: 400 != 200
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:171: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_specified_renderer_is_used_on_format_query_with_matching_accept _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_is_used_on_format_query_with_matching_accept>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_specified_renderer_is_used_on_format_query_with_matching_accept(self):
[2024-11-23T00:19:49.729Z] """If both a 'format' query and a matching Accept header specified,
[2024-11-23T00:19:49.729Z] the renderer with the matching format attribute should serialize the response."""
[2024-11-23T00:19:49.729Z] param = '?%s=%s' % (
[2024-11-23T00:19:49.729Z] api_settings.URL_FORMAT_OVERRIDE,
[2024-11-23T00:19:49.729Z] RendererB.format
[2024-11-23T00:19:49.729Z] )
[2024-11-23T00:19:49.729Z] resp = self.client.get('/' + param,
[2024-11-23T00:19:49.729Z] HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:232: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_default_case _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_default_case>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_specified_renderer_serializes_content_default_case(self):
[2024-11-23T00:19:49.729Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T00:19:49.729Z] (In this case we check that works for the default renderer)"""
[2024-11-23T00:19:49.729Z] resp = self.client.get('/', HTTP_ACCEPT=RendererA.media_type)
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:186: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_non_default_case _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_non_default_case>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_specified_renderer_serializes_content_non_default_case(self):
[2024-11-23T00:19:49.729Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T00:19:49.729Z] (In this case we check that works for a non-default renderer)"""
[2024-11-23T00:19:49.729Z] resp = self.client.get('/', HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:194: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_on_format_kwargs _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_on_format_kwargs>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_specified_renderer_serializes_content_on_format_kwargs(self):
[2024-11-23T00:19:49.729Z] """If a 'format' keyword arg is specified, the renderer with the matching
[2024-11-23T00:19:49.729Z] format attribute should serialize the response."""
[2024-11-23T00:19:49.729Z] resp = self.client.get('/something.formatb')
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:219: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.729Z] response = self.process_request(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.729Z] host = request.get_host()
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.729Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.729Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] WARNING django.request:log.py:248 Bad Request: /something.formatb
[2024-11-23T00:19:49.729Z] _ RendererEndToEndTests.test_specified_renderer_serializes_content_on_format_query _
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_specified_renderer_serializes_content_on_format_query>
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] def test_specified_renderer_serializes_content_on_format_query(self):
[2024-11-23T00:19:49.729Z] """If a 'format' query is specified, the renderer with the matching
[2024-11-23T00:19:49.729Z] format attribute should serialize the response."""
[2024-11-23T00:19:49.729Z] param = '?%s=%s' % (
[2024-11-23T00:19:49.729Z] api_settings.URL_FORMAT_OVERRIDE,
[2024-11-23T00:19:49.729Z] RendererB.format
[2024-11-23T00:19:49.729Z] )
[2024-11-23T00:19:49.729Z] resp = self.client.get('/' + param)
[2024-11-23T00:19:49.729Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.729Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.729Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.729Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.729Z]
[2024-11-23T00:19:49.729Z] tests/test_renderers.py:211: AssertionError
[2024-11-23T00:19:49.729Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.729Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.729Z] Traceback (most recent call last):
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.729Z] response = get_response(request)
[2024-11-23T00:19:49.729Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.730Z] response = self.process_request(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.730Z] host = request.get_host()
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.730Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.730Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.730Z] _ RendererEndToEndTests.test_unsatisfiable_accept_header_on_request_returns_406_status _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_renderers.RendererEndToEndTests testMethod=test_unsatisfiable_accept_header_on_request_returns_406_status>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
[2024-11-23T00:19:49.730Z] """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
[2024-11-23T00:19:49.730Z] resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
[2024-11-23T00:19:49.730Z] > self.assertEqual(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)
[2024-11-23T00:19:49.730Z] E AssertionError: 400 != 406
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_renderers.py:201: AssertionError
[2024-11-23T00:19:49.730Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.730Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] Traceback (most recent call last):
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.730Z] response = get_response(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.730Z] response = self.process_request(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.730Z] host = request.get_host()
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.730Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.730Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.730Z] ________________ JSONRendererTests.test_render_queryset_values _________________
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bece690>
[2024-11-23T00:19:49.730Z] sql = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (%s) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T00:19:49.730Z] params = ('dummy',)
[2024-11-23T00:19:49.730Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bece690>})
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.730Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.730Z] # ever set during testing).
[2024-11-23T00:19:49.730Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.730Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.730Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.730Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] # params default might be backend specific.
[2024-11-23T00:19:49.730Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.730Z] else:
[2024-11-23T00:19:49.730Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a0f0>
[2024-11-23T00:19:49.730Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T00:19:49.730Z] params = ('dummy',)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] return super().execute(query)
[2024-11-23T00:19:49.730Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.730Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.730Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.730Z] > return super().execute(query, params)
[2024-11-23T00:19:49.730Z] E sqlite3.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_renderers.JSONRendererTests testMethod=test_render_queryset_values>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_render_queryset_values(self):
[2024-11-23T00:19:49.730Z] > o = DummyTestModel.objects.create(name='dummy')
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_renderers.py:302:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.730Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.730Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.730Z] self.save_base(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.730Z] updated = self._save_table(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.730Z] results = self._do_insert(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.730Z] return manager._insert(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.730Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.730Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.730Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.730Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.730Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.730Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.730Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.730Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a0f0>
[2024-11-23T00:19:49.730Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T00:19:49.730Z] params = ('dummy',)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] return super().execute(query)
[2024-11-23T00:19:49.730Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.730Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.730Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.730Z] > return super().execute(query, params)
[2024-11-23T00:19:49.730Z] E django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.730Z] ______________ JSONRendererTests.test_render_queryset_values_list ______________
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521becf050>
[2024-11-23T00:19:49.730Z] sql = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (%s) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T00:19:49.730Z] params = ('dummy',)
[2024-11-23T00:19:49.730Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521becf050>})
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.730Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.730Z] # ever set during testing).
[2024-11-23T00:19:49.730Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.730Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.730Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.730Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] # params default might be backend specific.
[2024-11-23T00:19:49.730Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.730Z] else:
[2024-11-23T00:19:49.730Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009b50>
[2024-11-23T00:19:49.730Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T00:19:49.730Z] params = ('dummy',)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] return super().execute(query)
[2024-11-23T00:19:49.730Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.730Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.730Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.730Z] > return super().execute(query, params)
[2024-11-23T00:19:49.730Z] E sqlite3.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_renderers.JSONRendererTests testMethod=test_render_queryset_values_list>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_render_queryset_values_list(self):
[2024-11-23T00:19:49.730Z] > o = DummyTestModel.objects.create(name='dummy')
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_renderers.py:309:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.730Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.730Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.730Z] self.save_base(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.730Z] updated = self._save_table(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.730Z] results = self._do_insert(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.730Z] return manager._insert(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.730Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.730Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.730Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.730Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.730Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.730Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.730Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.730Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c009b50>
[2024-11-23T00:19:49.730Z] query = 'INSERT INTO "tests_dummytestmodel" ("name") VALUES (?) RETURNING "tests_dummytestmodel"."id"'
[2024-11-23T00:19:49.730Z] params = ('dummy',)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] return super().execute(query)
[2024-11-23T00:19:49.730Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.730Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.730Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.730Z] > return super().execute(query, params)
[2024-11-23T00:19:49.730Z] E django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.730Z] _______________________ CacheRenderTest.test_get_caching _______________________
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_renderers.CacheRenderTest testMethod=test_get_caching>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_get_caching(self):
[2024-11-23T00:19:49.730Z] """
[2024-11-23T00:19:49.730Z] Test caching of GET requests
[2024-11-23T00:19:49.730Z] """
[2024-11-23T00:19:49.730Z] response = self.client.get('/cache')
[2024-11-23T00:19:49.730Z] > cache.set('key', response)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_renderers.py:449:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.core.cache.backends.locmem.LocMemCache object at 0x7e521d65a120>
[2024-11-23T00:19:49.730Z] key = ':1:key'
[2024-11-23T00:19:49.730Z] value = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">
[2024-11-23T00:19:49.730Z] timeout = <object object at 0x7e5220180f20>, version = None
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None):
[2024-11-23T00:19:49.730Z] key = self.make_and_validate_key(key, version=version)
[2024-11-23T00:19:49.730Z] > pickled = pickle.dumps(value, self.pickle_protocol)
[2024-11-23T00:19:49.730Z] E AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/core/cache/backends/locmem.py:53: AttributeError
[2024-11-23T00:19:49.730Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.730Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] Traceback (most recent call last):
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.730Z] response = get_response(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.730Z] response = self.process_request(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.730Z] host = request.get_host()
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.730Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.730Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] WARNING django.request:log.py:248 Bad Request: /cache
[2024-11-23T00:19:49.730Z] ______________________ CacheRenderTest.test_head_caching _______________________
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_renderers.CacheRenderTest testMethod=test_head_caching>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_head_caching(self):
[2024-11-23T00:19:49.730Z] """
[2024-11-23T00:19:49.730Z] Test caching of HEAD requests
[2024-11-23T00:19:49.730Z] """
[2024-11-23T00:19:49.730Z] response = self.client.head('/cache')
[2024-11-23T00:19:49.730Z] > cache.set('key', response)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_renderers.py:438:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.core.cache.backends.locmem.LocMemCache object at 0x7e521d65a120>
[2024-11-23T00:19:49.730Z] key = ':1:key'
[2024-11-23T00:19:49.730Z] value = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">
[2024-11-23T00:19:49.730Z] timeout = <object object at 0x7e5220180f20>, version = None
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None):
[2024-11-23T00:19:49.730Z] key = self.make_and_validate_key(key, version=version)
[2024-11-23T00:19:49.730Z] > pickled = pickle.dumps(value, self.pickle_protocol)
[2024-11-23T00:19:49.730Z] E AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/core/cache/backends/locmem.py:53: AttributeError
[2024-11-23T00:19:49.730Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.730Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] Traceback (most recent call last):
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.730Z] response = get_response(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.730Z] response = self.process_request(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.730Z] host = request.get_host()
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.730Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.730Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] WARNING django.request:log.py:248 Bad Request: /cache
[2024-11-23T00:19:49.730Z] ____________ BrowsableAPIRendererTests.test_extra_actions_dropdown _____________
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_renderers.BrowsableAPIRendererTests testMethod=test_extra_actions_dropdown>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_extra_actions_dropdown(self):
[2024-11-23T00:19:49.730Z] resp = self.client.get('/api/examples/', HTTP_ACCEPT='text/html')
[2024-11-23T00:19:49.730Z] > assert 'id="extra-actions-menu"' in resp.content.decode()
[2024-11-23T00:19:49.730Z] E assert 'id="extra-actions-menu"' in '\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n'
[2024-11-23T00:19:49.730Z] E + where '\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n' = <built-in method decode of bytes object at 0x7e521b9596e0>()
[2024-11-23T00:19:49.730Z] E + where <built-in method decode of bytes object at 0x7e521b9596e0> = b'\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n'.decode
[2024-11-23T00:19:49.730Z] E + where b'\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n' = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.content
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_renderers.py:718: AssertionError
[2024-11-23T00:19:49.730Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.730Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] Traceback (most recent call last):
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.730Z] response = get_response(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.730Z] response = self.process_request(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.730Z] host = request.get_host()
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.730Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.730Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] WARNING django.request:log.py:248 Bad Request: /api/examples/
[2024-11-23T00:19:49.730Z] ____________ FileUploadTests.test_fileuploads_closed_at_request_end ____________
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_request.FileUploadTests testMethod=test_fileuploads_closed_at_request_end>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def test_fileuploads_closed_at_request_end(self):
[2024-11-23T00:19:49.730Z] with tempfile.NamedTemporaryFile() as f:
[2024-11-23T00:19:49.730Z] response = self.client.post('/upload/', {'file': f})
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] # sanity check that file was processed
[2024-11-23T00:19:49.730Z] > assert len(response.data) == 1
[2024-11-23T00:19:49.730Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_request.py:174: AttributeError
[2024-11-23T00:19:49.730Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.730Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] Traceback (most recent call last):
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.730Z] response = get_response(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.730Z] response = self.process_request(request)
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.730Z] host = request.get_host()
[2024-11-23T00:19:49.730Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.730Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.730Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.730Z] WARNING django.request:log.py:248 Bad Request: /upload/
[2024-11-23T00:19:49.730Z] _ TestContentParsingWithAuthentication.test_user_logged_in_authentication_has_POST_when_not_logged_in _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b9afe30>
[2024-11-23T00:19:49.730Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.730Z] params = ('md5$CxGUqJq6E8efuCf10dM3eD$95fb2cc37a8dd0ef417d9e0470484e26', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.730Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b9afe30>})
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.730Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.730Z] # ever set during testing).
[2024-11-23T00:19:49.730Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.730Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.730Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.730Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] # params default might be backend specific.
[2024-11-23T00:19:49.730Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.730Z] else:
[2024-11-23T00:19:49.730Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2c9e0>
[2024-11-23T00:19:49.730Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.730Z] params = ('md5$CxGUqJq6E8efuCf10dM3eD$95fb2cc37a8dd0ef417d9e0470484e26', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.730Z] if params is None:
[2024-11-23T00:19:49.730Z] return super().execute(query)
[2024-11-23T00:19:49.730Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.730Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.730Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.730Z] > return super().execute(query, params)
[2024-11-23T00:19:49.730Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <tests.test_request.TestContentParsingWithAuthentication testMethod=test_user_logged_in_authentication_has_POST_when_not_logged_in>
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] def setUp(self):
[2024-11-23T00:19:49.730Z] self.csrf_client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.730Z] self.username = 'john'
[2024-11-23T00:19:49.730Z] self.email = 'lennon at thebeatles.com'
[2024-11-23T00:19:49.730Z] self.password = 'password'
[2024-11-23T00:19:49.730Z] > self.user = User.objects.create_user(self.username, self.email, self.password)
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] tests/test_request.py:187:
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.730Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.730Z] user.save(using=self._db)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.730Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.730Z] self.save_base(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.730Z] updated = self._save_table(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.730Z] results = self._do_insert(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.730Z] return manager._insert(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.730Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.730Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.730Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.730Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.730Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.730Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.730Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.730Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.730Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.730Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.730Z]
[2024-11-23T00:19:49.730Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2c9e0>
[2024-11-23T00:19:49.730Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.730Z] params = ('md5$CxGUqJq6E8efuCf10dM3eD$95fb2cc37a8dd0ef417d9e0470484e26', None, False, 'john', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z] ____ TestUserSetter.test_calling_user_fails_when_attribute_error_is_raised _____
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b9a1430>
[2024-11-23T00:19:49.731Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$H61R2sF6JoM8PEqygeK2ze$1026a0c18c381bf020a6af079463d65b', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b9a1430>})
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.731Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.731Z] # ever set during testing).
[2024-11-23T00:19:49.731Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.731Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.731Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] # params default might be backend specific.
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.731Z] else:
[2024-11-23T00:19:49.731Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2e3c0>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$H61R2sF6JoM8PEqygeK2ze$1026a0c18c381bf020a6af079463d65b', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <tests.test_request.TestUserSetter testMethod=test_calling_user_fails_when_attribute_error_is_raised>
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def setUp(self):
[2024-11-23T00:19:49.731Z] # Pass request object through session middleware so session is
[2024-11-23T00:19:49.731Z] # available to login and logout functions
[2024-11-23T00:19:49.731Z] self.wrapped_request = factory.get('/')
[2024-11-23T00:19:49.731Z] self.request = Request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T00:19:49.731Z] return None
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] tests/test_request.py:217:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.731Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.731Z] user.save(using=self._db)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.731Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.731Z] self.save_base(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.731Z] updated = self._save_table(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.731Z] results = self._do_insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.731Z] return manager._insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.731Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.731Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.731Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.731Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.731Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.731Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2e3c0>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$H61R2sF6JoM8PEqygeK2ze$1026a0c18c381bf020a6af079463d65b', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z] _________ TestUserSetter.test_logged_in_user_is_set_on_wrapped_request _________
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b9a18b0>
[2024-11-23T00:19:49.731Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$giUPJ4z07Jgon9wFNYNPBG$456b82be34553ce8d5a9d91e57932a37', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b9a18b0>})
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.731Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.731Z] # ever set during testing).
[2024-11-23T00:19:49.731Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.731Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.731Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] # params default might be backend specific.
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.731Z] else:
[2024-11-23T00:19:49.731Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008ef0>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$giUPJ4z07Jgon9wFNYNPBG$456b82be34553ce8d5a9d91e57932a37', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <tests.test_request.TestUserSetter testMethod=test_logged_in_user_is_set_on_wrapped_request>
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def setUp(self):
[2024-11-23T00:19:49.731Z] # Pass request object through session middleware so session is
[2024-11-23T00:19:49.731Z] # available to login and logout functions
[2024-11-23T00:19:49.731Z] self.wrapped_request = factory.get('/')
[2024-11-23T00:19:49.731Z] self.request = Request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T00:19:49.731Z] return None
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] tests/test_request.py:217:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.731Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.731Z] user.save(using=self._db)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.731Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.731Z] self.save_base(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.731Z] updated = self._save_table(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.731Z] results = self._do_insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.731Z] return manager._insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.731Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.731Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.731Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.731Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.731Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.731Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008ef0>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$giUPJ4z07Jgon9wFNYNPBG$456b82be34553ce8d5a9d91e57932a37', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z] _____________________ TestUserSetter.test_user_can_be_set ______________________
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b9a1910>
[2024-11-23T00:19:49.731Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$isJkhFTfd16X6ymJxEVUSZ$2b653c36e9a69fce858e94e0d59c3d15', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b9a1910>})
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.731Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.731Z] # ever set during testing).
[2024-11-23T00:19:49.731Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.731Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.731Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] # params default might be backend specific.
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.731Z] else:
[2024-11-23T00:19:49.731Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2e180>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$isJkhFTfd16X6ymJxEVUSZ$2b653c36e9a69fce858e94e0d59c3d15', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <tests.test_request.TestUserSetter testMethod=test_user_can_be_set>
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def setUp(self):
[2024-11-23T00:19:49.731Z] # Pass request object through session middleware so session is
[2024-11-23T00:19:49.731Z] # available to login and logout functions
[2024-11-23T00:19:49.731Z] self.wrapped_request = factory.get('/')
[2024-11-23T00:19:49.731Z] self.request = Request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T00:19:49.731Z] return None
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] tests/test_request.py:217:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.731Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.731Z] user.save(using=self._db)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.731Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.731Z] self.save_base(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.731Z] updated = self._save_table(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.731Z] results = self._do_insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.731Z] return manager._insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.731Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.731Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.731Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.731Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.731Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.731Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2e180>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$isJkhFTfd16X6ymJxEVUSZ$2b653c36e9a69fce858e94e0d59c3d15', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z] ______________________ TestUserSetter.test_user_can_login ______________________
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b9a2c30>
[2024-11-23T00:19:49.731Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$i3wnaXRbCjOlDZjIgwETVT$a2370f1b282bc1c7a48fa57398ff82c7', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b9a2c30>})
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.731Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.731Z] # ever set during testing).
[2024-11-23T00:19:49.731Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.731Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.731Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.731Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] # params default might be backend specific.
[2024-11-23T00:19:49.731Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.731Z] else:
[2024-11-23T00:19:49.731Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2f410>
[2024-11-23T00:19:49.731Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.731Z] params = ('md5$i3wnaXRbCjOlDZjIgwETVT$a2370f1b282bc1c7a48fa57398ff82c7', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.731Z] if params is None:
[2024-11-23T00:19:49.731Z] return super().execute(query)
[2024-11-23T00:19:49.731Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.731Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.731Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.731Z] > return super().execute(query, params)
[2024-11-23T00:19:49.731Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] self = <tests.test_request.TestUserSetter testMethod=test_user_can_login>
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def setUp(self):
[2024-11-23T00:19:49.731Z] # Pass request object through session middleware so session is
[2024-11-23T00:19:49.731Z] # available to login and logout functions
[2024-11-23T00:19:49.731Z] self.wrapped_request = factory.get('/')
[2024-11-23T00:19:49.731Z] self.request = Request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T00:19:49.731Z] return None
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T00:19:49.731Z]
[2024-11-23T00:19:49.731Z] tests/test_request.py:217:
[2024-11-23T00:19:49.731Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.731Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.731Z] user.save(using=self._db)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.731Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.731Z] self.save_base(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.731Z] updated = self._save_table(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.731Z] results = self._do_insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.731Z] return manager._insert(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.731Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.731Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.731Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.731Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.731Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.731Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.732Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.732Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.732Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.732Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2f410>
[2024-11-23T00:19:49.732Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.732Z] params = ('md5$i3wnaXRbCjOlDZjIgwETVT$a2370f1b282bc1c7a48fa57398ff82c7', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.732Z] if params is None:
[2024-11-23T00:19:49.732Z] return super().execute(query)
[2024-11-23T00:19:49.732Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.732Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.732Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.732Z] > return super().execute(query, params)
[2024-11-23T00:19:49.732Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.732Z] _____________________ TestUserSetter.test_user_can_logout ______________________
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b98d190>
[2024-11-23T00:19:49.732Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.732Z] params = ('md5$5p6ErjCwJCOqdu4zyY0hup$38ebb8a855272fb0188c3f51cdcb2c17', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.732Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b98d190>})
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.732Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.732Z] # ever set during testing).
[2024-11-23T00:19:49.732Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.732Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.732Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.732Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.732Z] if params is None:
[2024-11-23T00:19:49.732Z] # params default might be backend specific.
[2024-11-23T00:19:49.732Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.732Z] else:
[2024-11-23T00:19:49.732Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.732Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2f650>
[2024-11-23T00:19:49.732Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.732Z] params = ('md5$5p6ErjCwJCOqdu4zyY0hup$38ebb8a855272fb0188c3f51cdcb2c17', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.732Z] if params is None:
[2024-11-23T00:19:49.732Z] return super().execute(query)
[2024-11-23T00:19:49.732Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.732Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.732Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.732Z] > return super().execute(query, params)
[2024-11-23T00:19:49.732Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_request.TestUserSetter testMethod=test_user_can_logout>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def setUp(self):
[2024-11-23T00:19:49.732Z] # Pass request object through session middleware so session is
[2024-11-23T00:19:49.732Z] # available to login and logout functions
[2024-11-23T00:19:49.732Z] self.wrapped_request = factory.get('/')
[2024-11-23T00:19:49.732Z] self.request = Request(self.wrapped_request)
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def dummy_get_response(request): # pragma: no cover
[2024-11-23T00:19:49.732Z] return None
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] SessionMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.732Z] AuthenticationMiddleware(dummy_get_response).process_request(self.wrapped_request)
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] > User.objects.create_user('ringo', 'starr at thebeatles.com', 'yellow')
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_request.py:217:
[2024-11-23T00:19:49.732Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.732Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.732Z] user.save(using=self._db)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.732Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.732Z] self.save_base(
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.732Z] updated = self._save_table(
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.732Z] results = self._do_insert(
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.732Z] return manager._insert(
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.732Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.732Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.732Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.732Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.732Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.732Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.732Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.732Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.732Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2f650>
[2024-11-23T00:19:49.732Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.732Z] params = ('md5$5p6ErjCwJCOqdu4zyY0hup$38ebb8a855272fb0188c3f51cdcb2c17', None, False, 'ringo', '', '', ...)
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.732Z] if params is None:
[2024-11-23T00:19:49.732Z] return super().execute(query)
[2024-11-23T00:19:49.732Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.732Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.732Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.732Z] > return super().execute(query, params)
[2024-11-23T00:19:49.732Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.732Z] ___________ TestHttpRequest.test_duplicate_request_form_data_access ____________
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_request.TestHttpRequest testMethod=test_duplicate_request_form_data_access>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] @override_settings(ROOT_URLCONF='tests.test_request')
[2024-11-23T00:19:49.732Z] def test_duplicate_request_form_data_access(self):
[2024-11-23T00:19:49.732Z] """
[2024-11-23T00:19:49.732Z] Form data is copied to the underlying django request for middleware
[2024-11-23T00:19:49.732Z] and file closing reasons. Duplicate processing of a request with form
[2024-11-23T00:19:49.732Z] data is 'safe' in so far as accessing `request.POST` does not trigger
[2024-11-23T00:19:49.732Z] the duplicate stream parse exception.
[2024-11-23T00:19:49.732Z] """
[2024-11-23T00:19:49.732Z] response = APIClient().post('/echo/', data={'a': 'b'})
[2024-11-23T00:19:49.732Z] > request = response._request
[2024-11-23T00:19:49.732Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute '_request'. Did you mean: 'request'?
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_request.py:336: AttributeError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /echo/
[2024-11-23T00:19:49.732Z] _______ TestHttpRequest.test_duplicate_request_stream_parsing_exception ________
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_request.TestHttpRequest testMethod=test_duplicate_request_stream_parsing_exception>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] @override_settings(ROOT_URLCONF='tests.test_request')
[2024-11-23T00:19:49.732Z] def test_duplicate_request_stream_parsing_exception(self):
[2024-11-23T00:19:49.732Z] """
[2024-11-23T00:19:49.732Z] Check assumption that duplicate stream parsing will result in a
[2024-11-23T00:19:49.732Z] `RawPostDataException` being raised.
[2024-11-23T00:19:49.732Z] """
[2024-11-23T00:19:49.732Z] response = APIClient().post('/echo/', data={'a': 'b'}, format='json')
[2024-11-23T00:19:49.732Z] > request = response._request
[2024-11-23T00:19:49.732Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute '_request'. Did you mean: 'request'?
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_request.py:317: AttributeError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /echo/
[2024-11-23T00:19:49.732Z] ______ RendererIntegrationTests.test_default_renderer_serializes_content _______
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_default_renderer_serializes_content>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_default_renderer_serializes_content(self):
[2024-11-23T00:19:49.732Z] """If the Accept header is not set the default renderer should serialize the response."""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/')
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:144: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] _ RendererIntegrationTests.test_default_renderer_serializes_content_on_accept_any _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_default_renderer_serializes_content_on_accept_any>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_default_renderer_serializes_content_on_accept_any(self):
[2024-11-23T00:19:49.732Z] """If the Accept header is set to */* the default renderer should serialize the response."""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/', HTTP_ACCEPT='*/*')
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:158: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] _______ RendererIntegrationTests.test_head_method_serializes_no_content ________
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_head_method_serializes_no_content>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_head_method_serializes_no_content(self):
[2024-11-23T00:19:49.732Z] """No response must be included in HEAD requests."""
[2024-11-23T00:19:49.732Z] resp = self.client.head('/')
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp.status_code, DUMMYSTATUS)
[2024-11-23T00:19:49.732Z] E AssertionError: 400 != 200
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:151: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] _ RendererIntegrationTests.test_specified_renderer_is_used_on_format_query_with_matching_accept _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_is_used_on_format_query_with_matching_accept>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_specified_renderer_is_used_on_format_query_with_matching_accept(self):
[2024-11-23T00:19:49.732Z] """If both a 'format' query and a matching Accept header specified,
[2024-11-23T00:19:49.732Z] the renderer with the matching format attribute should serialize the response."""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/?format=%s' % RendererB.format,
[2024-11-23T00:19:49.732Z] HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:199: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_default_case _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_default_case>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_specified_renderer_serializes_content_default_case(self):
[2024-11-23T00:19:49.732Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T00:19:49.732Z] (In this case we check that works for the default renderer)"""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/', HTTP_ACCEPT=RendererA.media_type)
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererA.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:166: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_non_default_case _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_non_default_case>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_specified_renderer_serializes_content_non_default_case(self):
[2024-11-23T00:19:49.732Z] """If the Accept header is set the specified renderer should serialize the response.
[2024-11-23T00:19:49.732Z] (In this case we check that works for a non-default renderer)"""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/', HTTP_ACCEPT=RendererB.media_type)
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:174: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_on_format_kwargs _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_on_format_kwargs>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_specified_renderer_serializes_content_on_format_kwargs(self):
[2024-11-23T00:19:49.732Z] """If a 'format' keyword arg is specified, the renderer with the matching
[2024-11-23T00:19:49.732Z] format attribute should serialize the response."""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/something.formatb')
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:190: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /something.formatb
[2024-11-23T00:19:49.732Z] _ RendererIntegrationTests.test_specified_renderer_serializes_content_on_format_query _
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.RendererIntegrationTests testMethod=test_specified_renderer_serializes_content_on_format_query>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_specified_renderer_serializes_content_on_format_query(self):
[2024-11-23T00:19:49.732Z] """If a 'format' query is specified, the renderer with the matching
[2024-11-23T00:19:49.732Z] format attribute should serialize the response."""
[2024-11-23T00:19:49.732Z] resp = self.client.get('/?format=%s' % RendererB.format)
[2024-11-23T00:19:49.732Z] > self.assertEqual(resp['Content-Type'], RendererB.media_type + '; charset=utf-8')
[2024-11-23T00:19:49.732Z] E AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.732Z] E - text/html; charset=utf-8
[2024-11-23T00:19:49.732Z] E + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:182: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.732Z] host = request.get_host()
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.732Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.732Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.732Z] ___________ UnsupportedMediaTypeTests.test_should_allow_posting_json ___________
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] self = <tests.test_response.UnsupportedMediaTypeTests testMethod=test_should_allow_posting_json>
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] def test_should_allow_posting_json(self):
[2024-11-23T00:19:49.732Z] response = self.client.post('/json', data='{"test": 123}', content_type='application/json')
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] > self.assertEqual(response.status_code, 200)
[2024-11-23T00:19:49.732Z] E AssertionError: 400 != 200
[2024-11-23T00:19:49.732Z]
[2024-11-23T00:19:49.732Z] tests/test_response.py:209: AssertionError
[2024-11-23T00:19:49.732Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.732Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.732Z] Traceback (most recent call last):
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.732Z] response = get_response(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.732Z] response = self.process_request(request)
[2024-11-23T00:19:49.732Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /json
[2024-11-23T00:19:49.733Z] ________ UnsupportedMediaTypeTests.test_should_not_allow_posting_a_form ________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_response.UnsupportedMediaTypeTests testMethod=test_should_not_allow_posting_a_form>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_should_not_allow_posting_a_form(self):
[2024-11-23T00:19:49.733Z] response = self.client.post('/json', data={'test': 123})
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] > self.assertEqual(response.status_code, 415)
[2024-11-23T00:19:49.733Z] E AssertionError: 400 != 415
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_response.py:219: AssertionError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /json
[2024-11-23T00:19:49.733Z] _________ UnsupportedMediaTypeTests.test_should_not_allow_posting_xml __________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_response.UnsupportedMediaTypeTests testMethod=test_should_not_allow_posting_xml>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_should_not_allow_posting_xml(self):
[2024-11-23T00:19:49.733Z] response = self.client.post('/json', data='<test>123</test>', content_type='application/xml')
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] > self.assertEqual(response.status_code, 415)
[2024-11-23T00:19:49.733Z] E AssertionError: 400 != 415
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_response.py:214: AssertionError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /json
[2024-11-23T00:19:49.733Z] __________ Issue807Tests.test_content_type_set_explicitly_on_response __________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_response.Issue807Tests testMethod=test_content_type_set_explicitly_on_response>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_content_type_set_explicitly_on_response(self):
[2024-11-23T00:19:49.733Z] """
[2024-11-23T00:19:49.733Z] The content type may be set explicitly on the response.
[2024-11-23T00:19:49.733Z] """
[2024-11-23T00:19:49.733Z] headers = {"HTTP_ACCEPT": RendererC.media_type}
[2024-11-23T00:19:49.733Z] resp = self.client.get('/setbyview', **headers)
[2024-11-23T00:19:49.733Z] > self.assertEqual('setbyview', resp['Content-Type'])
[2024-11-23T00:19:49.733Z] E AssertionError: 'setbyview' != 'text/html; charset=utf-8'
[2024-11-23T00:19:49.733Z] E - setbyview
[2024-11-23T00:19:49.733Z] E + text/html; charset=utf-8
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_response.py:282: AssertionError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /setbyview
[2024-11-23T00:19:49.733Z] ____________ Issue807Tests.test_does_not_append_charset_by_default _____________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_response.Issue807Tests testMethod=test_does_not_append_charset_by_default>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_does_not_append_charset_by_default(self):
[2024-11-23T00:19:49.733Z] """
[2024-11-23T00:19:49.733Z] Renderers don't include a charset unless set explicitly.
[2024-11-23T00:19:49.733Z] """
[2024-11-23T00:19:49.733Z] headers = {"HTTP_ACCEPT": RendererA.media_type}
[2024-11-23T00:19:49.733Z] resp = self.client.get('/', **headers)
[2024-11-23T00:19:49.733Z] expected = "{}; charset={}".format(RendererA.media_type, 'utf-8')
[2024-11-23T00:19:49.733Z] > self.assertEqual(expected, resp['Content-Type'])
[2024-11-23T00:19:49.733Z] E AssertionError: 'mock/renderera; charset=utf-8' != 'text/html; charset=utf-8'
[2024-11-23T00:19:49.733Z] E - mock/renderera; charset=utf-8
[2024-11-23T00:19:49.733Z] E + text/html; charset=utf-8
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_response.py:264: AssertionError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.733Z] _ Issue807Tests.test_if_there_is_charset_specified_on_renderer_it_gets_appended _
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_response.Issue807Tests testMethod=test_if_there_is_charset_specified_on_renderer_it_gets_appended>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_if_there_is_charset_specified_on_renderer_it_gets_appended(self):
[2024-11-23T00:19:49.733Z] """
[2024-11-23T00:19:49.733Z] If renderer class has charset attribute declared, it gets appended
[2024-11-23T00:19:49.733Z] to Response's Content-Type
[2024-11-23T00:19:49.733Z] """
[2024-11-23T00:19:49.733Z] headers = {"HTTP_ACCEPT": RendererC.media_type}
[2024-11-23T00:19:49.733Z] resp = self.client.get('/', **headers)
[2024-11-23T00:19:49.733Z] expected = "{}; charset={}".format(RendererC.media_type, RendererC.charset)
[2024-11-23T00:19:49.733Z] > self.assertEqual(expected, resp['Content-Type'])
[2024-11-23T00:19:49.733Z] E AssertionError: 'mock/rendererc; charset=rendererc' != 'text/html; charset=utf-8'
[2024-11-23T00:19:49.733Z] E - mock/rendererc; charset=rendererc
[2024-11-23T00:19:49.733Z] E + text/html; charset=utf-8
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_response.py:274: AssertionError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.733Z] _ ReverseTests.test_reverse_with_versioning_scheme_fallback_to_default_on_error _
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_reverse.MockVersioningScheme object at 0x7e521cb7a990>
[2024-11-23T00:19:49.733Z] args = ('view', None, None, <WSGIRequest: GET '/view'>, None), kwargs = {}
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def reverse(self, *args, **kwargs):
[2024-11-23T00:19:49.733Z] if self.raise_error:
[2024-11-23T00:19:49.733Z] > raise NoReverseMatch()
[2024-11-23T00:19:49.733Z] E django.urls.exceptions.NoReverseMatch
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_reverse.py:27: NoReverseMatch
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] During handling of the above exception, another exception occurred:
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_reverse.ReverseTests testMethod=test_reverse_with_versioning_scheme_fallback_to_default_on_error>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_reverse_with_versioning_scheme_fallback_to_default_on_error(self):
[2024-11-23T00:19:49.733Z] request = factory.get('/view')
[2024-11-23T00:19:49.733Z] request.versioning_scheme = MockVersioningScheme(raise_error=True)
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] > url = reverse('view', request=request)
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_reverse.py:53:
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z] rest_framework/reverse.py:45: in reverse
[2024-11-23T00:19:49.733Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.733Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.733Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.733Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.733Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.733Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <WSGIRequest: GET '/view'>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def get_host(self):
[2024-11-23T00:19:49.733Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.733Z] host = self._get_raw_host()
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.733Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.733Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.733Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.733Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.733Z] return host
[2024-11-23T00:19:49.733Z] else:
[2024-11-23T00:19:49.733Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.733Z] if domain:
[2024-11-23T00:19:49.733Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.733Z] else:
[2024-11-23T00:19:49.733Z] msg += (
[2024-11-23T00:19:49.733Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.733Z] )
[2024-11-23T00:19:49.733Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.733Z] _____________ ReverseTests.test_reversed_urls_are_fully_qualified ______________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_reverse.ReverseTests testMethod=test_reversed_urls_are_fully_qualified>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_reversed_urls_are_fully_qualified(self):
[2024-11-23T00:19:49.733Z] request = factory.get('/view')
[2024-11-23T00:19:49.733Z] > url = reverse('view', request=request)
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_reverse.py:39:
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z] rest_framework/reverse.py:47: in reverse
[2024-11-23T00:19:49.733Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.733Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.733Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.733Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.733Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.733Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <WSGIRequest: GET '/view'>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def get_host(self):
[2024-11-23T00:19:49.733Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.733Z] host = self._get_raw_host()
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.733Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.733Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.733Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.733Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.733Z] return host
[2024-11-23T00:19:49.733Z] else:
[2024-11-23T00:19:49.733Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.733Z] if domain:
[2024-11-23T00:19:49.733Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.733Z] else:
[2024-11-23T00:19:49.733Z] msg += (
[2024-11-23T00:19:49.733Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.733Z] )
[2024-11-23T00:19:49.733Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.733Z] ________________ TestSimpleRouter.test_multiple_action_handlers ________________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_routers.TestSimpleRouter testMethod=test_multiple_action_handlers>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_multiple_action_handlers(self):
[2024-11-23T00:19:49.733Z] # Standard action
[2024-11-23T00:19:49.733Z] response = self.client.post(reverse('basic-action3', args=[1]))
[2024-11-23T00:19:49.733Z] > assert response.data == {'post': '1'}
[2024-11-23T00:19:49.733Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_routers.py:191: AttributeError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /api/basics/1/action3/
[2024-11-23T00:19:49.733Z] __________________ TestRootView.test_retrieve_namespaced_root __________________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_routers.TestRootView testMethod=test_retrieve_namespaced_root>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_retrieve_namespaced_root(self):
[2024-11-23T00:19:49.733Z] response = self.client.get('/namespaced/')
[2024-11-23T00:19:49.733Z] > assert response.data == {"example": "http://testserver/namespaced/example/"}
[2024-11-23T00:19:49.733Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_routers.py:212: AttributeError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /namespaced/
[2024-11-23T00:19:49.733Z] ________________ TestRootView.test_retrieve_non_namespaced_root ________________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_routers.TestRootView testMethod=test_retrieve_non_namespaced_root>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def test_retrieve_non_namespaced_root(self):
[2024-11-23T00:19:49.733Z] response = self.client.get('/non-namespaced/')
[2024-11-23T00:19:49.733Z] > assert response.data == {"example": "http://testserver/non-namespaced/example/"}
[2024-11-23T00:19:49.733Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_routers.py:216: AttributeError
[2024-11-23T00:19:49.733Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.733Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] Traceback (most recent call last):
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.733Z] response = get_response(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.733Z] response = self.process_request(request)
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.733Z] host = request.get_host()
[2024-11-23T00:19:49.733Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.733Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.733Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.733Z] WARNING django.request:log.py:248 Bad Request: /non-namespaced/
[2024-11-23T00:19:49.733Z] ____________ TestCustomLookupFields.test_custom_lookup_field_route _____________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bcba630>
[2024-11-23T00:19:49.733Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.733Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.733Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bcba630>})
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.733Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.733Z] # ever set during testing).
[2024-11-23T00:19:49.733Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.733Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.733Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.733Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.733Z] if params is None:
[2024-11-23T00:19:49.733Z] # params default might be backend specific.
[2024-11-23T00:19:49.733Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.733Z] else:
[2024-11-23T00:19:49.733Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2e570>
[2024-11-23T00:19:49.733Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.733Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.733Z] if params is None:
[2024-11-23T00:19:49.733Z] return super().execute(query)
[2024-11-23T00:19:49.733Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.733Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.733Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.733Z] > return super().execute(query, params)
[2024-11-23T00:19:49.733Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_custom_lookup_field_route>
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def setUp(self):
[2024-11-23T00:19:49.733Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] tests/test_routers.py:229:
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.733Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.733Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.733Z] self.save_base(
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.733Z] updated = self._save_table(
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.733Z] results = self._do_insert(
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.733Z] return manager._insert(
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.733Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.733Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.733Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.733Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.733Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.733Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.733Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.733Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.733Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2e570>
[2024-11-23T00:19:49.733Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.733Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.733Z] if params is None:
[2024-11-23T00:19:49.733Z] return super().execute(query)
[2024-11-23T00:19:49.733Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.733Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.733Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.733Z] > return super().execute(query, params)
[2024-11-23T00:19:49.733Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.733Z] ________ TestCustomLookupFields.test_retrieve_lookup_field_detail_view _________
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd11130>
[2024-11-23T00:19:49.733Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.733Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.733Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd11130>})
[2024-11-23T00:19:49.733Z]
[2024-11-23T00:19:49.733Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.733Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.733Z] # ever set during testing).
[2024-11-23T00:19:49.733Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] # params default might be backend specific.
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.734Z] else:
[2024-11-23T00:19:49.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2ede0>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_retrieve_lookup_field_detail_view>
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def setUp(self):
[2024-11-23T00:19:49.734Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] tests/test_routers.py:229:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.734Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.734Z] self.save_base(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.734Z] updated = self._save_table(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.734Z] results = self._do_insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.734Z] return manager._insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.734Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.734Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.734Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2ede0>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z] _________ TestCustomLookupFields.test_retrieve_lookup_field_list_view __________
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd11c70>
[2024-11-23T00:19:49.734Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd11c70>})
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.734Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.734Z] # ever set during testing).
[2024-11-23T00:19:49.734Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] # params default might be backend specific.
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.734Z] else:
[2024-11-23T00:19:49.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4dc70>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_retrieve_lookup_field_list_view>
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def setUp(self):
[2024-11-23T00:19:49.734Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] tests/test_routers.py:229:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.734Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.734Z] self.save_base(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.734Z] updated = self._save_table(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.734Z] results = self._do_insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.734Z] return manager._insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.734Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.734Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.734Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4dc70>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z] __ TestCustomLookupFields.test_retrieve_lookup_field_url_encoded_detail_view_ __
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd2d070>
[2024-11-23T00:19:49.734Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd2d070>})
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.734Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.734Z] # ever set during testing).
[2024-11-23T00:19:49.734Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] # params default might be backend specific.
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.734Z] else:
[2024-11-23T00:19:49.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2f410>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <tests.test_routers.TestCustomLookupFields testMethod=test_retrieve_lookup_field_url_encoded_detail_view_>
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def setUp(self):
[2024-11-23T00:19:49.734Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] tests/test_routers.py:229:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.734Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.734Z] self.save_base(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.734Z] updated = self._save_table(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.734Z] results = self._do_insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.734Z] return manager._insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.734Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.734Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.734Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2f410>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z] ____________ TestLookupUrlKwargs.test_custom_lookup_url_kwarg_route ____________
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd2c290>
[2024-11-23T00:19:49.734Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd2c290>})
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.734Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.734Z] # ever set during testing).
[2024-11-23T00:19:49.734Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] # params default might be backend specific.
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.734Z] else:
[2024-11-23T00:19:49.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <tests.test_routers.TestLookupUrlKwargs testMethod=test_custom_lookup_url_kwarg_route>
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def setUp(self):
[2024-11-23T00:19:49.734Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] tests/test_routers.py:286:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.734Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.734Z] self.save_base(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.734Z] updated = self._save_table(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.734Z] results = self._do_insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.734Z] return manager._insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.734Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.734Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.734Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z] ____ TestLookupUrlKwargs.test_retrieve_lookup_url_encoded_kwarg_detail_view ____
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bcbae10>
[2024-11-23T00:19:49.734Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bcbae10>})
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.734Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.734Z] # ever set during testing).
[2024-11-23T00:19:49.734Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.734Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.734Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] # params default might be backend specific.
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.734Z] else:
[2024-11-23T00:19:49.734Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <tests.test_routers.TestLookupUrlKwargs testMethod=test_retrieve_lookup_url_encoded_kwarg_detail_view>
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def setUp(self):
[2024-11-23T00:19:49.734Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] tests/test_routers.py:286:
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.734Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.734Z] self.save_base(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.734Z] updated = self._save_table(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.734Z] results = self._do_insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.734Z] return manager._insert(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.734Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.734Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.734Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.734Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.734Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.734Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.734Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.734Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.734Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.734Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.734Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.734Z] if params is None:
[2024-11-23T00:19:49.734Z] return super().execute(query)
[2024-11-23T00:19:49.734Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.734Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.734Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.734Z] > return super().execute(query, params)
[2024-11-23T00:19:49.734Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.734Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.734Z] ________ TestLookupUrlKwargs.test_retrieve_lookup_url_kwarg_detail_view ________
[2024-11-23T00:19:49.734Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521ba0f410>
[2024-11-23T00:19:49.735Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521ba0f410>})
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.735Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.735Z] # ever set during testing).
[2024-11-23T00:19:49.735Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.735Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.735Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] # params default might be backend specific.
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.735Z] else:
[2024-11-23T00:19:49.735Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestLookupUrlKwargs testMethod=test_retrieve_lookup_url_kwarg_detail_view>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def setUp(self):
[2024-11-23T00:19:49.735Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:286:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.735Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.735Z] self.save_base(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.735Z] updated = self._save_table(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.735Z] results = self._do_insert(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.735Z] return manager._insert(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.735Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.735Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.735Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.735Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.735Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z] ___________________ TestEmptyPrefix.test_empty_prefix_detail ___________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestEmptyPrefix testMethod=test_empty_prefix_detail>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def test_empty_prefix_detail(self):
[2024-11-23T00:19:49.735Z] response = self.client.get('/empty-prefix/1/')
[2024-11-23T00:19:49.735Z] > assert response.status_code == 200
[2024-11-23T00:19:49.735Z] E assert 400 == 200
[2024-11-23T00:19:49.735Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:480: AssertionError
[2024-11-23T00:19:49.735Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.735Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] Traceback (most recent call last):
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.735Z] response = get_response(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.735Z] response = self.process_request(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.735Z] host = request.get_host()
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.735Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.735Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] WARNING django.request:log.py:248 Bad Request: /empty-prefix/1/
[2024-11-23T00:19:49.735Z] ____________________ TestEmptyPrefix.test_empty_prefix_list ____________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestEmptyPrefix testMethod=test_empty_prefix_list>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def test_empty_prefix_list(self):
[2024-11-23T00:19:49.735Z] response = self.client.get('/empty-prefix/')
[2024-11-23T00:19:49.735Z] > assert response.status_code == 200
[2024-11-23T00:19:49.735Z] E assert 400 == 200
[2024-11-23T00:19:49.735Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:474: AssertionError
[2024-11-23T00:19:49.735Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.735Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] Traceback (most recent call last):
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.735Z] response = get_response(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.735Z] response = self.process_request(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.735Z] host = request.get_host()
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.735Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.735Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] WARNING django.request:log.py:248 Bad Request: /empty-prefix/
[2024-11-23T00:19:49.735Z] _________________ TestRegexUrlPath.test_regex_url_path_detail __________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestRegexUrlPath testMethod=test_regex_url_path_detail>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def test_regex_url_path_detail(self):
[2024-11-23T00:19:49.735Z] pk = '1'
[2024-11-23T00:19:49.735Z] kwarg = '1234'
[2024-11-23T00:19:49.735Z] response = self.client.get('/regex/{}/detail/{}/'.format(pk, kwarg))
[2024-11-23T00:19:49.735Z] > assert response.status_code == 200
[2024-11-23T00:19:49.735Z] E assert 400 == 200
[2024-11-23T00:19:49.735Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:499: AssertionError
[2024-11-23T00:19:49.735Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.735Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] Traceback (most recent call last):
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.735Z] response = get_response(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.735Z] response = self.process_request(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.735Z] host = request.get_host()
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.735Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.735Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] WARNING django.request:log.py:248 Bad Request: /regex/1/detail/1234/
[2024-11-23T00:19:49.735Z] __________________ TestRegexUrlPath.test_regex_url_path_list ___________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestRegexUrlPath testMethod=test_regex_url_path_list>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def test_regex_url_path_list(self):
[2024-11-23T00:19:49.735Z] kwarg = '1234'
[2024-11-23T00:19:49.735Z] response = self.client.get('/regex/list/{}/'.format(kwarg))
[2024-11-23T00:19:49.735Z] > assert response.status_code == 200
[2024-11-23T00:19:49.735Z] E assert 400 == 200
[2024-11-23T00:19:49.735Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:492: AssertionError
[2024-11-23T00:19:49.735Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.735Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] Traceback (most recent call last):
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.735Z] response = get_response(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.735Z] response = self.process_request(request)
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.735Z] host = request.get_host()
[2024-11-23T00:19:49.735Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.735Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.735Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.735Z] WARNING django.request:log.py:248 Bad Request: /regex/list/1234/
[2024-11-23T00:19:49.735Z] ___________________________ TestUrlPath.test_create ____________________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bece750>
[2024-11-23T00:19:49.735Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bece750>})
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.735Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.735Z] # ever set during testing).
[2024-11-23T00:19:49.735Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.735Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.735Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] # params default might be backend specific.
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.735Z] else:
[2024-11-23T00:19:49.735Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008ef0>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestUrlPath testMethod=test_create>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def setUp(self):
[2024-11-23T00:19:49.735Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.735Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.735Z] self.save_base(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.735Z] updated = self._save_table(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.735Z] results = self._do_insert(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.735Z] return manager._insert(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.735Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.735Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.735Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.735Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.735Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c008ef0>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z] _____________________ TestUrlPath.test_defaultrouter_root ______________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd11c10>
[2024-11-23T00:19:49.735Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd11c10>})
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.735Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.735Z] # ever set during testing).
[2024-11-23T00:19:49.735Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.735Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.735Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] # params default might be backend specific.
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.735Z] else:
[2024-11-23T00:19:49.735Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestUrlPath testMethod=test_defaultrouter_root>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def setUp(self):
[2024-11-23T00:19:49.735Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.735Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.735Z] self.save_base(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.735Z] updated = self._save_table(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.735Z] results = self._do_insert(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.735Z] return manager._insert(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.735Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.735Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.735Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.735Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.735Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z] ___________________________ TestUrlPath.test_delete ____________________________
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd11070>
[2024-11-23T00:19:49.735Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd11070>})
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.735Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.735Z] # ever set during testing).
[2024-11-23T00:19:49.735Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.735Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.735Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.735Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] # params default might be backend specific.
[2024-11-23T00:19:49.735Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.735Z] else:
[2024-11-23T00:19:49.735Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a0f0>
[2024-11-23T00:19:49.735Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.735Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.735Z] if params is None:
[2024-11-23T00:19:49.735Z] return super().execute(query)
[2024-11-23T00:19:49.735Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.735Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.735Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.735Z] > return super().execute(query, params)
[2024-11-23T00:19:49.735Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] self = <tests.test_routers.TestUrlPath testMethod=test_delete>
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] def setUp(self):
[2024-11-23T00:19:49.735Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.735Z]
[2024-11-23T00:19:49.735Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.735Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.735Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.735Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.735Z] self.save_base(
[2024-11-23T00:19:49.735Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.736Z] updated = self._save_table(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.736Z] results = self._do_insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.736Z] return manager._insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.736Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.736Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.736Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a0f0>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z] _____________________ TestUrlPath.test_detail_extra_action _____________________
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b9a1df0>
[2024-11-23T00:19:49.736Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b9a1df0>})
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.736Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.736Z] # ever set during testing).
[2024-11-23T00:19:49.736Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.736Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.736Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] # params default might be backend specific.
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.736Z] else:
[2024-11-23T00:19:49.736Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <tests.test_routers.TestUrlPath testMethod=test_detail_extra_action>
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def setUp(self):
[2024-11-23T00:19:49.736Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.736Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.736Z] self.save_base(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.736Z] updated = self._save_table(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.736Z] results = self._do_insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.736Z] return manager._insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.736Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.736Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.736Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z] __________________ TestUrlPath.test_detail_extra_other_action __________________
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd2dc10>
[2024-11-23T00:19:49.736Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd2dc10>})
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.736Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.736Z] # ever set during testing).
[2024-11-23T00:19:49.736Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.736Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.736Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] # params default might be backend specific.
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.736Z] else:
[2024-11-23T00:19:49.736Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0090a0>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <tests.test_routers.TestUrlPath testMethod=test_detail_extra_other_action>
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def setUp(self):
[2024-11-23T00:19:49.736Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.736Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.736Z] self.save_base(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.736Z] updated = self._save_table(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.736Z] results = self._do_insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.736Z] return manager._insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.736Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.736Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.736Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c0090a0>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z] ____________________________ TestUrlPath.test_list _____________________________
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd2e330>
[2024-11-23T00:19:49.736Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd2e330>})
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.736Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.736Z] # ever set during testing).
[2024-11-23T00:19:49.736Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.736Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.736Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] # params default might be backend specific.
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.736Z] else:
[2024-11-23T00:19:49.736Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <tests.test_routers.TestUrlPath testMethod=test_list>
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def setUp(self):
[2024-11-23T00:19:49.736Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.736Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.736Z] self.save_base(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.736Z] updated = self._save_table(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.736Z] results = self._do_insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.736Z] return manager._insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.736Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.736Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.736Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z] ______________________ TestUrlPath.test_list_extra_action ______________________
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd2a2d0>
[2024-11-23T00:19:49.736Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd2a2d0>})
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.736Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.736Z] # ever set during testing).
[2024-11-23T00:19:49.736Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.736Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.736Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] # params default might be backend specific.
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.736Z] else:
[2024-11-23T00:19:49.736Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00aba0>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <tests.test_routers.TestUrlPath testMethod=test_list_extra_action>
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def setUp(self):
[2024-11-23T00:19:49.736Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.736Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.736Z] self.save_base(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.736Z] updated = self._save_table(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.736Z] results = self._do_insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.736Z] return manager._insert(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.736Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.736Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.736Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.736Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.736Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.736Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00aba0>
[2024-11-23T00:19:49.736Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] return super().execute(query)
[2024-11-23T00:19:49.736Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.736Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.736Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.736Z] > return super().execute(query, params)
[2024-11-23T00:19:49.736Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.736Z] __________________________ TestUrlPath.test_retrieve ___________________________
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd2b710>
[2024-11-23T00:19:49.736Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.736Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.736Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd2b710>})
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.736Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.736Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.736Z] # ever set during testing).
[2024-11-23T00:19:49.736Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.736Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.736Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.736Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.736Z] if params is None:
[2024-11-23T00:19:49.736Z] # params default might be backend specific.
[2024-11-23T00:19:49.736Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.736Z] else:
[2024-11-23T00:19:49.736Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.736Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.737Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_routers.TestUrlPath testMethod=test_retrieve>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def setUp(self):
[2024-11-23T00:19:49.737Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.737Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.737Z] self.save_base(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.737Z] updated = self._save_table(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.737Z] results = self._do_insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.737Z] return manager._insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.737Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.737Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.737Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.737Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.737Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caefc80>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.737Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z] ___________________________ TestUrlPath.test_update ____________________________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bd29970>
[2024-11-23T00:19:49.737Z] sql = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (%s, %s) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.737Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.737Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bd29970>})
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.737Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.737Z] # ever set during testing).
[2024-11-23T00:19:49.737Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.737Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.737Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] # params default might be backend specific.
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.737Z] else:
[2024-11-23T00:19:49.737Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a180>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.737Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E sqlite3.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_routers.TestUrlPath testMethod=test_update>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def setUp(self):
[2024-11-23T00:19:49.737Z] > RouterTestModel.objects.create(uuid='123', text='foo bar')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_routers.py:512:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.737Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.737Z] self.save_base(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.737Z] updated = self._save_table(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.737Z] results = self._do_insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.737Z] return manager._insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.737Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.737Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.737Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.737Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.737Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a180>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "tests_routertestmodel" ("uuid", "text") VALUES (?, ?) RETURNING "tests_routertestmodel"."id"'
[2024-11-23T00:19:49.737Z] params = ('123', 'foo bar')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z] ____________________ TestToRepresentationManagerCheck.test _____________________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bc78ef0>
[2024-11-23T00:19:49.737Z] sql = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (%s) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.737Z] params = ('OneToOneTarget',)
[2024-11-23T00:19:49.737Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bc78ef0>})
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.737Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.737Z] # ever set during testing).
[2024-11-23T00:19:49.737Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.737Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.737Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] # params default might be backend specific.
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.737Z] else:
[2024-11-23T00:19:49.737Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d760>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.737Z] params = ('OneToOneTarget',)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E sqlite3.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_serializer_lists.TestToRepresentationManagerCheck object at 0x7e521d3b4910>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def test(self):
[2024-11-23T00:19:49.737Z] > o2o_target = OneToOneTarget.objects.create(name='OneToOneTarget')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_serializer_lists.py:776:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.737Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.737Z] self.save_base(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.737Z] updated = self._save_table(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.737Z] results = self._do_insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.737Z] return manager._insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.737Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.737Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.737Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.737Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.737Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d760>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "tests_onetoonetarget" ("name") VALUES (?) RETURNING "tests_onetoonetarget"."id"'
[2024-11-23T00:19:49.737Z] params = ('OneToOneTarget',)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z] ______________________ TestAPITestClient.test_can_logout _______________________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_testing.TestAPITestClient testMethod=test_can_logout>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def test_can_logout(self):
[2024-11-23T00:19:49.737Z] """
[2024-11-23T00:19:49.737Z] `logout()` resets stored credentials
[2024-11-23T00:19:49.737Z] """
[2024-11-23T00:19:49.737Z] self.client.credentials(HTTP_AUTHORIZATION='example')
[2024-11-23T00:19:49.737Z] response = self.client.get('/view/')
[2024-11-23T00:19:49.737Z] > assert response.data['auth'] == 'example'
[2024-11-23T00:19:49.737Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_testing.py:172: AttributeError
[2024-11-23T00:19:49.737Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.737Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.737Z] Traceback (most recent call last):
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.737Z] response = get_response(request)
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.737Z] response = self.process_request(request)
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.737Z] host = request.get_host()
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.737Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.737Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.737Z] WARNING django.request:log.py:248 Bad Request: /view/
[2024-11-23T00:19:49.737Z] ______________________ TestAPITestClient.test_credentials ______________________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_testing.TestAPITestClient testMethod=test_credentials>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def test_credentials(self):
[2024-11-23T00:19:49.737Z] """
[2024-11-23T00:19:49.737Z] Setting `.credentials()` adds the required headers to each request.
[2024-11-23T00:19:49.737Z] """
[2024-11-23T00:19:49.737Z] self.client.credentials(HTTP_AUTHORIZATION='example')
[2024-11-23T00:19:49.737Z] for _ in range(0, 3):
[2024-11-23T00:19:49.737Z] response = self.client.get('/view/')
[2024-11-23T00:19:49.737Z] > assert response.data['auth'] == 'example'
[2024-11-23T00:19:49.737Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_testing.py:81: AttributeError
[2024-11-23T00:19:49.737Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.737Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.737Z] Traceback (most recent call last):
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.737Z] response = get_response(request)
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.737Z] response = self.process_request(request)
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.737Z] host = request.get_host()
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.737Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.737Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.737Z] WARNING django.request:log.py:248 Bad Request: /view/
[2024-11-23T00:19:49.737Z] ________________ TestAPITestClient.test_csrf_exempt_by_default _________________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bc8e3f0>
[2024-11-23T00:19:49.737Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.737Z] params = ('md5$WcWe7FRAlPC9GVAe7XiBL8$1d7effdfb98a20abf1d79be079967ec2', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.737Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bc8e3f0>})
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.737Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.737Z] # ever set during testing).
[2024-11-23T00:19:49.737Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.737Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.737Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] # params default might be backend specific.
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.737Z] else:
[2024-11-23T00:19:49.737Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d520>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.737Z] params = ('md5$WcWe7FRAlPC9GVAe7XiBL8$1d7effdfb98a20abf1d79be079967ec2', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_testing.TestAPITestClient testMethod=test_csrf_exempt_by_default>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def test_csrf_exempt_by_default(self):
[2024-11-23T00:19:49.737Z] """
[2024-11-23T00:19:49.737Z] By default, the test client is CSRF exempt.
[2024-11-23T00:19:49.737Z] """
[2024-11-23T00:19:49.737Z] > User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_testing.py:149:
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.737Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.737Z] user.save(using=self._db)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.737Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.737Z] self.save_base(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.737Z] updated = self._save_table(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.737Z] results = self._do_insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.737Z] return manager._insert(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.737Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.737Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.737Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.737Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.737Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.737Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.737Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.737Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.737Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d520>
[2024-11-23T00:19:49.737Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.737Z] params = ('md5$WcWe7FRAlPC9GVAe7XiBL8$1d7effdfb98a20abf1d79be079967ec2', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.737Z] if params is None:
[2024-11-23T00:19:49.737Z] return super().execute(query)
[2024-11-23T00:19:49.737Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.737Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.737Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.737Z] > return super().execute(query, params)
[2024-11-23T00:19:49.737Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.737Z] _________ TestAPITestClient.test_empty_post_uses_default_boolean_value _________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <tests.test_testing.TestAPITestClient testMethod=test_empty_post_uses_default_boolean_value>
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] def test_empty_post_uses_default_boolean_value(self):
[2024-11-23T00:19:49.737Z] response = self.client.post(
[2024-11-23T00:19:49.737Z] '/post-view/',
[2024-11-23T00:19:49.737Z] data=None,
[2024-11-23T00:19:49.737Z] content_type='application/json'
[2024-11-23T00:19:49.737Z] )
[2024-11-23T00:19:49.737Z] > assert response.status_code == 200
[2024-11-23T00:19:49.737Z] E assert 400 == 200
[2024-11-23T00:19:49.737Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] tests/test_testing.py:236: AssertionError
[2024-11-23T00:19:49.737Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.737Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.737Z] Traceback (most recent call last):
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.737Z] response = get_response(request)
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.737Z] response = self.process_request(request)
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.737Z] host = request.get_host()
[2024-11-23T00:19:49.737Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.737Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.737Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.737Z] WARNING django.request:log.py:248 Bad Request: /post-view/
[2024-11-23T00:19:49.737Z] ____________ TestAPITestClient.test_explicitly_enforce_csrf_checks _____________
[2024-11-23T00:19:49.737Z]
[2024-11-23T00:19:49.737Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bc8fef0>
[2024-11-23T00:19:49.737Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.737Z] params = ('md5$Rw541u44p3dzLG8Ri1IrOU$020511260d3c194ae322cfabd93cd37d', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bc8fef0>})
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.738Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.738Z] # ever set during testing).
[2024-11-23T00:19:49.738Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] # params default might be backend specific.
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.738Z] else:
[2024-11-23T00:19:49.738Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4dfd0>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('md5$Rw541u44p3dzLG8Ri1IrOU$020511260d3c194ae322cfabd93cd37d', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <tests.test_testing.TestAPITestClient testMethod=test_explicitly_enforce_csrf_checks>
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def test_explicitly_enforce_csrf_checks(self):
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] The test client can enforce CSRF checks.
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] client = APIClient(enforce_csrf_checks=True)
[2024-11-23T00:19:49.738Z] > User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] tests/test_testing.py:159:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.738Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.738Z] user.save(using=self._db)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.738Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.738Z] self.save_base(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.738Z] updated = self._save_table(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.738Z] results = self._do_insert(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.738Z] return manager._insert(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.738Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.738Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.738Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.738Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.738Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.738Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4dfd0>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('md5$Rw541u44p3dzLG8Ri1IrOU$020511260d3c194ae322cfabd93cd37d', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z] ____________ TestAPITestClient.test_follow_307_308_preserve_kwargs _____________
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <tests.test_testing.TestAPITestClient testMethod=test_follow_307_308_preserve_kwargs>
[2024-11-23T00:19:49.738Z] mocked_methods = ()
[2024-11-23T00:19:49.738Z] methods = ('get', 'post', 'put', 'patch', 'delete', 'options')
[2024-11-23T00:19:49.738Z] codes = (307, 308), method = 'get'
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def test_follow_307_308_preserve_kwargs(self, *mocked_methods):
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] Follow redirect by setting follow argument, and make sure the following
[2024-11-23T00:19:49.738Z] method called with appropriate kwargs.
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] methods = ('get', 'post', 'put', 'patch', 'delete', 'options')
[2024-11-23T00:19:49.738Z] codes = (307, 308)
[2024-11-23T00:19:49.738Z] for method, code in itertools.product(methods, codes):
[2024-11-23T00:19:49.738Z] subtest_ctx = self.subTest(method=method, code=code)
[2024-11-23T00:19:49.738Z] patch_ctx = patch.object(self.client, method, side_effect=getattr(self.client, method))
[2024-11-23T00:19:49.738Z] with subtest_ctx, patch_ctx as req_method:
[2024-11-23T00:19:49.738Z] kwargs = {'data': {'example': 'test'}, 'format': 'json'}
[2024-11-23T00:19:49.738Z] response = req_method('/redirect-view/%s/' % code, follow=True, **kwargs)
[2024-11-23T00:19:49.738Z] assert response.redirect_chain is not None
[2024-11-23T00:19:49.738Z] > assert response.status_code == 200
[2024-11-23T00:19:49.738Z] E assert 400 == 200
[2024-11-23T00:19:49.738Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] tests/test_testing.py:216: AssertionError
[2024-11-23T00:19:49.738Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.738Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.738Z] Traceback (most recent call last):
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.738Z] response = get_response(request)
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.738Z] response = self.process_request(request)
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.738Z] host = request.get_host()
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.738Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.738Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.738Z] WARNING django.request:log.py:248 Bad Request: /redirect-view/307/
[2024-11-23T00:19:49.738Z] ____________________ TestAPITestClient.test_follow_redirect ____________________
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <tests.test_testing.TestAPITestClient testMethod=test_follow_redirect>
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def test_follow_redirect(self):
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] Follow redirect by setting follow argument.
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] for method in ('get', 'post', 'put', 'patch', 'delete', 'options'):
[2024-11-23T00:19:49.738Z] with self.subTest(method=method):
[2024-11-23T00:19:49.738Z] req_method = getattr(self.client, method)
[2024-11-23T00:19:49.738Z] response = req_method('/redirect-view/')
[2024-11-23T00:19:49.738Z] > assert response.status_code == 302
[2024-11-23T00:19:49.738Z] E assert 400 == 302
[2024-11-23T00:19:49.738Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] tests/test_testing.py:197: AssertionError
[2024-11-23T00:19:49.738Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.738Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.738Z] Traceback (most recent call last):
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.738Z] response = get_response(request)
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.738Z] response = self.process_request(request)
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.738Z] host = request.get_host()
[2024-11-23T00:19:49.738Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.738Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.738Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.738Z] WARNING django.request:log.py:248 Bad Request: /redirect-view/
[2024-11-23T00:19:49.738Z] ___________ TestAPITestClient.test_force_authenticate_with_sessions ____________
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b83acf0>
[2024-11-23T00:19:49.738Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!2zF19QkoT6k8ClcHitKFSdfWuQgVHNrVGKz6xJKT', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b83acf0>})
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.738Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.738Z] # ever set during testing).
[2024-11-23T00:19:49.738Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] # params default might be backend specific.
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.738Z] else:
[2024-11-23T00:19:49.738Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f890>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!2zF19QkoT6k8ClcHitKFSdfWuQgVHNrVGKz6xJKT', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_sessions>
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def test_force_authenticate_with_sessions(self):
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] Setting `.force_authenticate()` forcibly authenticates each request.
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] tests/test_testing.py:128:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.738Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.738Z] user.save(using=self._db)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.738Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.738Z] self.save_base(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.738Z] updated = self._save_table(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.738Z] results = self._do_insert(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.738Z] return manager._insert(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.738Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.738Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.738Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.738Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.738Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.738Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f890>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!2zF19QkoT6k8ClcHitKFSdfWuQgVHNrVGKz6xJKT', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z] _____________ TestAPITestClient.test_force_authenticate_with_token _____________
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b83af30>
[2024-11-23T00:19:49.738Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!9v7FQVnnML4XStnHQsLQyriEAWQ7e9VVlC8Xlsyq', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b83af30>})
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.738Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.738Z] # ever set during testing).
[2024-11-23T00:19:49.738Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] # params default might be backend specific.
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.738Z] else:
[2024-11-23T00:19:49.738Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f380>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!9v7FQVnnML4XStnHQsLQyriEAWQ7e9VVlC8Xlsyq', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_token>
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def test_force_authenticate_with_token(self):
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] Setting `.force_authenticate()` with a token forcibly authenticates each
[2024-11-23T00:19:49.738Z] request with that token.
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] tests/test_testing.py:101:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.738Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.738Z] user.save(using=self._db)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.738Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.738Z] self.save_base(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.738Z] updated = self._save_table(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.738Z] results = self._do_insert(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.738Z] return manager._insert(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.738Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.738Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.738Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.738Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.738Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.738Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f380>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!9v7FQVnnML4XStnHQsLQyriEAWQ7e9VVlC8Xlsyq', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z] _____________ TestAPITestClient.test_force_authenticate_with_user ______________
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b8392b0>
[2024-11-23T00:19:49.738Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!1tpPKw4oNPT7dR86xPQNszqeqwYV8jus4bCpu6mR', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b8392b0>})
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.738Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.738Z] # ever set during testing).
[2024-11-23T00:19:49.738Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.738Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.738Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.738Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] # params default might be backend specific.
[2024-11-23T00:19:49.738Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.738Z] else:
[2024-11-23T00:19:49.738Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.738Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.738Z] params = ('!1tpPKw4oNPT7dR86xPQNszqeqwYV8jus4bCpu6mR', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.738Z] if params is None:
[2024-11-23T00:19:49.738Z] return super().execute(query)
[2024-11-23T00:19:49.738Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.738Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.738Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.738Z] > return super().execute(query, params)
[2024-11-23T00:19:49.738Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_user>
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] def test_force_authenticate_with_user(self):
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] Setting `.force_authenticate()` with a user forcibly authenticates each
[2024-11-23T00:19:49.738Z] request with that user.
[2024-11-23T00:19:49.738Z] """
[2024-11-23T00:19:49.738Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T00:19:49.738Z]
[2024-11-23T00:19:49.738Z] tests/test_testing.py:88:
[2024-11-23T00:19:49.738Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.738Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.738Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.739Z] user.save(using=self._db)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.739Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.739Z] self.save_base(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.739Z] updated = self._save_table(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.739Z] results = self._do_insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.739Z] return manager._insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.739Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.739Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.739Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('!1tpPKw4oNPT7dR86xPQNszqeqwYV8jus4bCpu6mR', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z] ________ TestAPITestClient.test_force_authenticate_with_user_and_token _________
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bc8f650>
[2024-11-23T00:19:49.739Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('!FSuoNixibZyqHsemQgCbX9aeenvjtem8u7cvaS0i', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bc8f650>})
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.739Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.739Z] # ever set during testing).
[2024-11-23T00:19:49.739Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.739Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.739Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] # params default might be backend specific.
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.739Z] else:
[2024-11-23T00:19:49.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00aba0>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('!FSuoNixibZyqHsemQgCbX9aeenvjtem8u7cvaS0i', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <tests.test_testing.TestAPITestClient testMethod=test_force_authenticate_with_user_and_token>
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def test_force_authenticate_with_user_and_token(self):
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] Setting `.force_authenticate()` with a user and token forcibly
[2024-11-23T00:19:49.739Z] authenticates each request with that user and token.
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] tests/test_testing.py:115:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.739Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.739Z] user.save(using=self._db)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.739Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.739Z] self.save_base(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.739Z] updated = self._save_table(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.739Z] results = self._do_insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.739Z] return manager._insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.739Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.739Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.739Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00aba0>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('!FSuoNixibZyqHsemQgCbX9aeenvjtem8u7cvaS0i', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z] ___________ TestAPITestClient.test_logout_resets_force_authenticate ____________
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b98c050>
[2024-11-23T00:19:49.739Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$vktsTxxgoEQdcNftQNO1Cg$263796b3a4cacf40b85c3bada74abe20', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b98c050>})
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.739Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.739Z] # ever set during testing).
[2024-11-23T00:19:49.739Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.739Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.739Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] # params default might be backend specific.
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.739Z] else:
[2024-11-23T00:19:49.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$vktsTxxgoEQdcNftQNO1Cg$263796b3a4cacf40b85c3bada74abe20', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <tests.test_testing.TestAPITestClient testMethod=test_logout_resets_force_authenticate>
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def test_logout_resets_force_authenticate(self):
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] `logout()` resets any `force_authenticate`
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] > user = User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] tests/test_testing.py:181:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.739Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.739Z] user.save(using=self._db)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.739Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.739Z] self.save_base(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.739Z] updated = self._save_table(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.739Z] results = self._do_insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.739Z] return manager._insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.739Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.739Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.739Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$vktsTxxgoEQdcNftQNO1Cg$263796b3a4cacf40b85c3bada74abe20', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z] ______________ TestAPIRequestFactory.test_csrf_exempt_by_default _______________
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7d3e90>
[2024-11-23T00:19:49.739Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$RSotm8Ewwk5NGZOnnSMAyU$b90931227c78d44bfdad3d9b03f9980e', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7d3e90>})
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.739Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.739Z] # ever set during testing).
[2024-11-23T00:19:49.739Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.739Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.739Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] # params default might be backend specific.
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.739Z] else:
[2024-11-23T00:19:49.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00aba0>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$RSotm8Ewwk5NGZOnnSMAyU$b90931227c78d44bfdad3d9b03f9980e', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <tests.test_testing.TestAPIRequestFactory testMethod=test_csrf_exempt_by_default>
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def test_csrf_exempt_by_default(self):
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] By default, the test client is CSRF exempt.
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] > user = User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] tests/test_testing.py:245:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.739Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.739Z] user.save(using=self._db)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.739Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.739Z] self.save_base(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.739Z] updated = self._save_table(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.739Z] results = self._do_insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.739Z] return manager._insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.739Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.739Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.739Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00aba0>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$RSotm8Ewwk5NGZOnnSMAyU$b90931227c78d44bfdad3d9b03f9980e', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z] __________ TestAPIRequestFactory.test_explicitly_enforce_csrf_checks ___________
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7d3710>
[2024-11-23T00:19:49.739Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$5iPK0giY5RNY2hJhZEMHPq$e033c3bc8653f050aca8b39925354b4f', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7d3710>})
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.739Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.739Z] # ever set during testing).
[2024-11-23T00:19:49.739Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.739Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.739Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] # params default might be backend specific.
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.739Z] else:
[2024-11-23T00:19:49.739Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$5iPK0giY5RNY2hJhZEMHPq$e033c3bc8653f050aca8b39925354b4f', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.739Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.739Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.739Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.739Z] > return super().execute(query, params)
[2024-11-23T00:19:49.739Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <tests.test_testing.TestAPIRequestFactory testMethod=test_explicitly_enforce_csrf_checks>
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def test_explicitly_enforce_csrf_checks(self):
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] The test client can enforce CSRF checks.
[2024-11-23T00:19:49.739Z] """
[2024-11-23T00:19:49.739Z] > user = User.objects.create_user('example', 'example at example.com', 'password')
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] tests/test_testing.py:256:
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.739Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.739Z] user.save(using=self._db)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.739Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.739Z] self.save_base(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.739Z] updated = self._save_table(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.739Z] results = self._do_insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.739Z] return manager._insert(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.739Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.739Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.739Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.739Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.739Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.739Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.739Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.739Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.739Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.739Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.739Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.739Z] params = ('md5$5iPK0giY5RNY2hJhZEMHPq$e033c3bc8653f050aca8b39925354b4f', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.739Z]
[2024-11-23T00:19:49.739Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.739Z] if params is None:
[2024-11-23T00:19:49.739Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z] ________________ TestAPIRequestFactory.test_force_authenticate _________________
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7d09b0>
[2024-11-23T00:19:49.740Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('!WSQeWPNL2lZpa5AqXwsAgQhZnhBZILtAQo33maJf', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.740Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7d09b0>})
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.740Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.740Z] # ever set during testing).
[2024-11-23T00:19:49.740Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.740Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.740Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] # params default might be backend specific.
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.740Z] else:
[2024-11-23T00:19:49.740Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00b890>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('!WSQeWPNL2lZpa5AqXwsAgQhZnhBZILtAQo33maJf', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <tests.test_testing.TestAPIRequestFactory testMethod=test_force_authenticate>
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def test_force_authenticate(self):
[2024-11-23T00:19:49.740Z] """
[2024-11-23T00:19:49.740Z] Setting `force_authenticate()` forcibly authenticates the request.
[2024-11-23T00:19:49.740Z] """
[2024-11-23T00:19:49.740Z] > user = User.objects.create_user('example', 'example at example.com')
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] tests/test_testing.py:280:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:162: in create_user
[2024-11-23T00:19:49.740Z] return self._create_user(username, email, password, **extra_fields)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/contrib/auth/models.py:156: in _create_user
[2024-11-23T00:19:49.740Z] user.save(using=self._db)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.740Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.740Z] self.save_base(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.740Z] updated = self._save_table(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.740Z] results = self._do_insert(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.740Z] return manager._insert(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.740Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.740Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.740Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.740Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.740Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00b890>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('!WSQeWPNL2lZpa5AqXwsAgQhZnhBZILtAQo33maJf', None, False, 'example', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z] ___________________ TestUrlPatternTestCase.test_urlpatterns ____________________
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <tests.test_testing.TestUrlPatternTestCase testMethod=test_urlpatterns>
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def test_urlpatterns(self):
[2024-11-23T00:19:49.740Z] > assert self.client.get('/').status_code == 200
[2024-11-23T00:19:49.740Z] E assert 400 == 200
[2024-11-23T00:19:49.740Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.740Z] E + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T00:19:49.740Z] E + where get = <django.test.client.Client object at 0x7e521c036e90>.get
[2024-11-23T00:19:49.740Z] E + where <django.test.client.Client object at 0x7e521c036e90> = <tests.test_testing.TestUrlPatternTestCase testMethod=test_urlpatterns>.client
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] tests/test_testing.py:339: AssertionError
[2024-11-23T00:19:49.740Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.740Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.740Z] Traceback (most recent call last):
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.740Z] response = get_response(request)
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.740Z] response = self.process_request(request)
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.740Z] host = request.get_host()
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.740Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.740Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.740Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.740Z] ____________________ TestExistingPatterns.test_urlpatterns _____________________
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <tests.test_testing.TestExistingPatterns testMethod=test_urlpatterns>
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def test_urlpatterns(self):
[2024-11-23T00:19:49.740Z] # sanity test to ensure that this test module does not have a '/' route
[2024-11-23T00:19:49.740Z] > assert self.client.get('/').status_code == 404
[2024-11-23T00:19:49.740Z] E assert 400 == 404
[2024-11-23T00:19:49.740Z] E + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.740Z] E + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T00:19:49.740Z] E + where get = <django.test.client.Client object at 0x7e521c036850>.get
[2024-11-23T00:19:49.740Z] E + where <django.test.client.Client object at 0x7e521c036850> = <tests.test_testing.TestExistingPatterns testMethod=test_urlpatterns>.client
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] tests/test_testing.py:345: AssertionError
[2024-11-23T00:19:49.740Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.740Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.740Z] Traceback (most recent call last):
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.740Z] response = get_response(request)
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.740Z] response = self.process_request(request)
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.740Z] host = request.get_host()
[2024-11-23T00:19:49.740Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.740Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.740Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.740Z] WARNING django.request:log.py:248 Bad Request: /
[2024-11-23T00:19:49.740Z] _____________ ThrottlingTests.test_request_throttling_is_per_user ______________
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b83bef0>
[2024-11-23T00:19:49.740Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'a', '', '', ...)
[2024-11-23T00:19:49.740Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b83bef0>})
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.740Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.740Z] # ever set during testing).
[2024-11-23T00:19:49.740Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.740Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.740Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] # params default might be backend specific.
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.740Z] else:
[2024-11-23T00:19:49.740Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2c830>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'a', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <tests.test_throttling.ThrottlingTests testMethod=test_request_throttling_is_per_user>
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def test_request_throttling_is_per_user(self):
[2024-11-23T00:19:49.740Z] """
[2024-11-23T00:19:49.740Z] Ensure request rate is only limited per user, not globally for
[2024-11-23T00:19:49.740Z] PerUserThrottles
[2024-11-23T00:19:49.740Z] """
[2024-11-23T00:19:49.740Z] > self.ensure_is_throttled(MockView, 200)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] tests/test_throttling.py:129:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z] tests/test_throttling.py:117: in ensure_is_throttled
[2024-11-23T00:19:49.740Z] request.user = User.objects.create(username='a')
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.740Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.740Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.740Z] self.save_base(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.740Z] updated = self._save_table(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.740Z] results = self._do_insert(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.740Z] return manager._insert(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.740Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.740Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.740Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.740Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.740Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2c830>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'a', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z] _ ScopedRateThrottleTests.test_get_cache_key_returns_correct_key_if_user_is_authenticated _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521bc7aff0>
[2024-11-23T00:19:49.740Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T00:19:49.740Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521bc7aff0>})
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.740Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.740Z] # ever set during testing).
[2024-11-23T00:19:49.740Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.740Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.740Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] # params default might be backend specific.
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.740Z] else:
[2024-11-23T00:19:49.740Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f2f0>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <tests.test_throttling.ScopedRateThrottleTests testMethod=test_get_cache_key_returns_correct_key_if_user_is_authenticated>
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def test_get_cache_key_returns_correct_key_if_user_is_authenticated(self):
[2024-11-23T00:19:49.740Z] class DummyView:
[2024-11-23T00:19:49.740Z] throttle_scope = 'user'
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] request = Request(HttpRequest())
[2024-11-23T00:19:49.740Z] > user = User.objects.create(username='test')
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] tests/test_throttling.py:367:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.740Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.740Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.740Z] self.save_base(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.740Z] updated = self._save_table(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.740Z] results = self._do_insert(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.740Z] return manager._insert(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.740Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.740Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.740Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.740Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.740Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f2f0>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z] __________ AnonRateThrottleTests.test_authenticated_user_not_affected __________
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b788950>
[2024-11-23T00:19:49.740Z] sql = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T00:19:49.740Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b788950>})
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.740Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.740Z] # ever set during testing).
[2024-11-23T00:19:49.740Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.740Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.740Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.740Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] # params default might be backend specific.
[2024-11-23T00:19:49.740Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.740Z] else:
[2024-11-23T00:19:49.740Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a180>
[2024-11-23T00:19:49.740Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.740Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.740Z] if params is None:
[2024-11-23T00:19:49.740Z] return super().execute(query)
[2024-11-23T00:19:49.740Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.740Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.740Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.740Z] > return super().execute(query, params)
[2024-11-23T00:19:49.740Z] E sqlite3.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] self = <tests.test_throttling.AnonRateThrottleTests testMethod=test_authenticated_user_not_affected>
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] def test_authenticated_user_not_affected(self):
[2024-11-23T00:19:49.740Z] request = Request(HttpRequest())
[2024-11-23T00:19:49.740Z] > user = User.objects.create(username='test')
[2024-11-23T00:19:49.740Z]
[2024-11-23T00:19:49.740Z] tests/test_throttling.py:507:
[2024-11-23T00:19:49.740Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.740Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.740Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.740Z] /usr/lib/python3.13/site-packages/django/contrib/auth/base_user.py:62: in save
[2024-11-23T00:19:49.740Z] super().save(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.741Z] self.save_base(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.741Z] updated = self._save_table(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.741Z] results = self._do_insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.741Z] return manager._insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.741Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.741Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.741Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521c00a180>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "auth_user"."id"'
[2024-11-23T00:19:49.741Z] params = ('', None, False, 'test', '', '', ...)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z] ________ TestMaxValueValidatorValidation.test_max_value_validation_fail ________
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7d41d0>
[2024-11-23T00:19:49.741Z] sql = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (%s) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T00:19:49.741Z] params = (100,)
[2024-11-23T00:19:49.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7d41d0>})
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.741Z] # ever set during testing).
[2024-11-23T00:19:49.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] # params default might be backend specific.
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.741Z] else:
[2024-11-23T00:19:49.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f0b0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T00:19:49.741Z] params = (100,)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E sqlite3.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <tests.test_validation.TestMaxValueValidatorValidation testMethod=test_max_value_validation_fail>
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def test_max_value_validation_fail(self):
[2024-11-23T00:19:49.741Z] > obj = ValidationMaxValueValidatorModel.objects.create(number_value=100)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] tests/test_validation.py:157:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.741Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.741Z] self.save_base(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.741Z] updated = self._save_table(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.741Z] results = self._do_insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.741Z] return manager._insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.741Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.741Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.741Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f0b0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T00:19:49.741Z] params = (100,)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z] ______ TestMaxValueValidatorValidation.test_max_value_validation_success _______
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7d5d30>
[2024-11-23T00:19:49.741Z] sql = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (%s) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T00:19:49.741Z] params = (100,)
[2024-11-23T00:19:49.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7d5d30>})
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.741Z] # ever set during testing).
[2024-11-23T00:19:49.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] # params default might be backend specific.
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.741Z] else:
[2024-11-23T00:19:49.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2c830>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T00:19:49.741Z] params = (100,)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E sqlite3.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <tests.test_validation.TestMaxValueValidatorValidation testMethod=test_max_value_validation_success>
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def test_max_value_validation_success(self):
[2024-11-23T00:19:49.741Z] > obj = ValidationMaxValueValidatorModel.objects.create(number_value=100)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] tests/test_validation.py:150:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.741Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.741Z] self.save_base(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.741Z] updated = self._save_table(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.741Z] results = self._do_insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.741Z] return manager._insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.741Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.741Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.741Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2c830>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_validationmaxvaluevalidatormodel" ("number_value") VALUES (?) RETURNING "tests_validationmaxvaluevalidatormodel"."id"'
[2024-11-23T00:19:49.741Z] params = (100,)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z] ______________ TestUniquenessValidation.test_doesnt_pollute_model ______________
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7d7950>
[2024-11-23T00:19:49.741Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7d7950>})
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.741Z] # ever set during testing).
[2024-11-23T00:19:49.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] # params default might be backend specific.
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.741Z] else:
[2024-11-23T00:19:49.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fd7f0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_doesnt_pollute_model>
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def setUp(self):
[2024-11-23T00:19:49.741Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.741Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.741Z] self.save_base(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.741Z] updated = self._save_table(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.741Z] results = self._do_insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.741Z] return manager._insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.741Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.741Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.741Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fd7f0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z] _________________ TestUniquenessValidation.test_is_not_unique __________________
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4a70>
[2024-11-23T00:19:49.741Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4a70>})
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.741Z] # ever set during testing).
[2024-11-23T00:19:49.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] # params default might be backend specific.
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.741Z] else:
[2024-11-23T00:19:49.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fcef0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_is_not_unique>
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def setUp(self):
[2024-11-23T00:19:49.741Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.741Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.741Z] self.save_base(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.741Z] updated = self._save_table(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.741Z] results = self._do_insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.741Z] return manager._insert(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.741Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.741Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.741Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.741Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.741Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.741Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fcef0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.741Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.741Z] ___________________ TestUniquenessValidation.test_is_unique ____________________
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4fb0>
[2024-11-23T00:19:49.741Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4fb0>})
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.741Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.741Z] # ever set during testing).
[2024-11-23T00:19:49.741Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.741Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.741Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.741Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] # params default might be backend specific.
[2024-11-23T00:19:49.741Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.741Z] else:
[2024-11-23T00:19:49.741Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.741Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe2a0>
[2024-11-23T00:19:49.741Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.741Z] params = ('existing',)
[2024-11-23T00:19:49.741Z]
[2024-11-23T00:19:49.741Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.741Z] if params is None:
[2024-11-23T00:19:49.741Z] return super().execute(query)
[2024-11-23T00:19:49.741Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.741Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.741Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.741Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_is_unique>
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def setUp(self):
[2024-11-23T00:19:49.742Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.742Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.742Z] self.save_base(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.742Z] updated = self._save_table(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.742Z] results = self._do_insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.742Z] return manager._insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.742Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.742Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.742Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe2a0>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z] ____________ TestUniquenessValidation.test_related_model_is_unique _____________
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b80ce30>
[2024-11-23T00:19:49.742Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b80ce30>})
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.742Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.742Z] # ever set during testing).
[2024-11-23T00:19:49.742Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.742Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.742Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] # params default might be backend specific.
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.742Z] else:
[2024-11-23T00:19:49.742Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe450>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_related_model_is_unique>
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def setUp(self):
[2024-11-23T00:19:49.742Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.742Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.742Z] self.save_base(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.742Z] updated = self._save_table(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.742Z] results = self._do_insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.742Z] return manager._insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.742Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.742Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.742Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe450>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z] _____________ TestUniquenessValidation.test_relation_is_not_unique _____________
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b80c770>
[2024-11-23T00:19:49.742Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b80c770>})
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.742Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.742Z] # ever set during testing).
[2024-11-23T00:19:49.742Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.742Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.742Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] # params default might be backend specific.
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.742Z] else:
[2024-11-23T00:19:49.742Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fd130>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_relation_is_not_unique>
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def setUp(self):
[2024-11-23T00:19:49.742Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.742Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.742Z] self.save_base(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.742Z] updated = self._save_table(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.742Z] results = self._do_insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.742Z] return manager._insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.742Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.742Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.742Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fd130>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z] ______________________ TestUniquenessValidation.test_repr ______________________
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4530>
[2024-11-23T00:19:49.742Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4530>})
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.742Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.742Z] # ever set during testing).
[2024-11-23T00:19:49.742Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.742Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.742Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] # params default might be backend specific.
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.742Z] else:
[2024-11-23T00:19:49.742Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fcb90>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_repr>
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def setUp(self):
[2024-11-23T00:19:49.742Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.742Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.742Z] self.save_base(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.742Z] updated = self._save_table(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.742Z] results = self._do_insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.742Z] return manager._insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.742Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.742Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.742Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fcb90>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z] ___________ TestUniquenessValidation.test_updated_instance_excluded ____________
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7b57f0>
[2024-11-23T00:19:49.742Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7b57f0>})
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.742Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.742Z] # ever set during testing).
[2024-11-23T00:19:49.742Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.742Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.742Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] # params default might be backend specific.
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.742Z] else:
[2024-11-23T00:19:49.742Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fed50>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_updated_instance_excluded>
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def setUp(self):
[2024-11-23T00:19:49.742Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.742Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.742Z] self.save_base(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.742Z] updated = self._save_table(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.742Z] results = self._do_insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.742Z] return manager._insert(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.742Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.742Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.742Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.742Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.742Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.742Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.742Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.742Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.742Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fed50>
[2024-11-23T00:19:49.742Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.742Z] if params is None:
[2024-11-23T00:19:49.742Z] return super().execute(query)
[2024-11-23T00:19:49.742Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.742Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.742Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.742Z] > return super().execute(query, params)
[2024-11-23T00:19:49.742Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.742Z] _______ TestUniquenessValidation.test_value_error_treated_as_not_unique ________
[2024-11-23T00:19:49.742Z]
[2024-11-23T00:19:49.742Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b80dd30>
[2024-11-23T00:19:49.742Z] sql = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (%s) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.742Z] params = ('existing',)
[2024-11-23T00:19:49.743Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b80dd30>})
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.743Z] # ever set during testing).
[2024-11-23T00:19:49.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] # params default might be backend specific.
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.743Z] else:
[2024-11-23T00:19:49.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fcb90>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('existing',)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E sqlite3.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <tests.test_validators.TestUniquenessValidation testMethod=test_value_error_treated_as_not_unique>
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def setUp(self):
[2024-11-23T00:19:49.743Z] > self.instance = UniquenessModel.objects.create(username='existing')
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] tests/test_validators.py:78:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.743Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.743Z] self.save_base(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.743Z] updated = self._save_table(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.743Z] results = self._do_insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.743Z] return manager._insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.743Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.743Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.743Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fcb90>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenessmodel" ("username") VALUES (?) RETURNING "tests_uniquenessmodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('existing',)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z] _________ TestUniquenessTogetherValidation.test_allow_explict_override _________
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b80ed50>
[2024-11-23T00:19:49.743Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b80ed50>})
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.743Z] # ever set during testing).
[2024-11-23T00:19:49.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] # params default might be backend specific.
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.743Z] else:
[2024-11-23T00:19:49.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fdbe0>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_allow_explict_override>
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def setUp(self):
[2024-11-23T00:19:49.743Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.743Z] race_name='example',
[2024-11-23T00:19:49.743Z] position=1
[2024-11-23T00:19:49.743Z] )
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.743Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.743Z] self.save_base(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.743Z] updated = self._save_table(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.743Z] results = self._do_insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.743Z] return manager._insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.743Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.743Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.743Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fdbe0>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z] _ TestUniquenessTogetherValidation.test_default_validator_with_fields_with_source _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4a70>
[2024-11-23T00:19:49.743Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7b4a70>})
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.743Z] # ever set during testing).
[2024-11-23T00:19:49.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] # params default might be backend specific.
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.743Z] else:
[2024-11-23T00:19:49.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f770>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_default_validator_with_fields_with_source>
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def setUp(self):
[2024-11-23T00:19:49.743Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.743Z] race_name='example',
[2024-11-23T00:19:49.743Z] position=1
[2024-11-23T00:19:49.743Z] )
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.743Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.743Z] self.save_base(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.743Z] updated = self._save_table(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.743Z] results = self._do_insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.743Z] return manager._insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.743Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.743Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.743Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f770>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z] _ TestUniquenessTogetherValidation.test_default_validator_with_multiple_fields_with_same_source _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b825070>
[2024-11-23T00:19:49.743Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b825070>})
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.743Z] # ever set during testing).
[2024-11-23T00:19:49.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] # params default might be backend specific.
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.743Z] else:
[2024-11-23T00:19:49.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff530>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_default_validator_with_multiple_fields_with_same_source>
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def setUp(self):
[2024-11-23T00:19:49.743Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.743Z] race_name='example',
[2024-11-23T00:19:49.743Z] position=1
[2024-11-23T00:19:49.743Z] )
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.743Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.743Z] self.save_base(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.743Z] updated = self._save_table(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.743Z] results = self._do_insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.743Z] return manager._insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.743Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.743Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.743Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff530>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z] _ TestUniquenessTogetherValidation.test_do_not_ignore_validation_for_null_fields _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b824b90>
[2024-11-23T00:19:49.743Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b824b90>})
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.743Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.743Z] # ever set during testing).
[2024-11-23T00:19:49.743Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.743Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.743Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] # params default might be backend specific.
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.743Z] else:
[2024-11-23T00:19:49.743Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.743Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.743Z] params = ('example', 1)
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.743Z] if params is None:
[2024-11-23T00:19:49.743Z] return super().execute(query)
[2024-11-23T00:19:49.743Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.743Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.743Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.743Z] > return super().execute(query, params)
[2024-11-23T00:19:49.743Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_do_not_ignore_validation_for_null_fields>
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] def setUp(self):
[2024-11-23T00:19:49.743Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.743Z] race_name='example',
[2024-11-23T00:19:49.743Z] position=1
[2024-11-23T00:19:49.743Z] )
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.743Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.743Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.743Z] self.save_base(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.743Z] updated = self._save_table(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.743Z] results = self._do_insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.743Z] return manager._insert(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.743Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.743Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.743Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.743Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.743Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.743Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.743Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.743Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.743Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.743Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.743Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z] _ TestUniquenessTogetherValidation.test_filter_queryset_do_not_skip_existing_attribute _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b825c10>
[2024-11-23T00:19:49.744Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b825c10>})
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.744Z] # ever set during testing).
[2024-11-23T00:19:49.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] # params default might be backend specific.
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.744Z] else:
[2024-11-23T00:19:49.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_filter_queryset_do_not_skip_existing_attribute>
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def setUp(self):
[2024-11-23T00:19:49.744Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.744Z] race_name='example',
[2024-11-23T00:19:49.744Z] position=1
[2024-11-23T00:19:49.744Z] )
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.744Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.744Z] self.save_base(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.744Z] updated = self._save_table(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.744Z] results = self._do_insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.744Z] return manager._insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.744Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.744Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.744Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.744Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.744Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z] _________ TestUniquenessTogetherValidation.test_ignore_excluded_fields _________
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b78b530>
[2024-11-23T00:19:49.744Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b78b530>})
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.744Z] # ever set during testing).
[2024-11-23T00:19:49.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] # params default might be backend specific.
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.744Z] else:
[2024-11-23T00:19:49.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_excluded_fields>
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def setUp(self):
[2024-11-23T00:19:49.744Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.744Z] race_name='example',
[2024-11-23T00:19:49.744Z] position=1
[2024-11-23T00:19:49.744Z] )
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.744Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.744Z] self.save_base(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.744Z] updated = self._save_table(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.744Z] results = self._do_insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.744Z] return manager._insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.744Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.744Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.744Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.744Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.744Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z] ________ TestUniquenessTogetherValidation.test_ignore_read_only_fields _________
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b8382f0>
[2024-11-23T00:19:49.744Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b8382f0>})
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.744Z] # ever set during testing).
[2024-11-23T00:19:49.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] # params default might be backend specific.
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.744Z] else:
[2024-11-23T00:19:49.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f770>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_read_only_fields>
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def setUp(self):
[2024-11-23T00:19:49.744Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.744Z] race_name='example',
[2024-11-23T00:19:49.744Z] position=1
[2024-11-23T00:19:49.744Z] )
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.744Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.744Z] self.save_base(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.744Z] updated = self._save_table(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.744Z] results = self._do_insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.744Z] return manager._insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.744Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.744Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.744Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.744Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.744Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f770>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z] ___ TestUniquenessTogetherValidation.test_ignore_validation_for_null_fields ____
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b8270b0>
[2024-11-23T00:19:49.744Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b8270b0>})
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.744Z] # ever set during testing).
[2024-11-23T00:19:49.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] # params default might be backend specific.
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.744Z] else:
[2024-11-23T00:19:49.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d7f0>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_validation_for_null_fields>
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def setUp(self):
[2024-11-23T00:19:49.744Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.744Z] race_name='example',
[2024-11-23T00:19:49.744Z] position=1
[2024-11-23T00:19:49.744Z] )
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.744Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.744Z] self.save_base(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.744Z] updated = self._save_table(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.744Z] results = self._do_insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.744Z] return manager._insert(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.744Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.744Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.744Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.744Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.744Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.744Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d7f0>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.744Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.744Z] > return super().execute(query, params)
[2024-11-23T00:19:49.744Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.744Z] _ TestUniquenessTogetherValidation.test_ignore_validation_for_unchanged_fields _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7980b0>
[2024-11-23T00:19:49.744Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7980b0>})
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.744Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.744Z] # ever set during testing).
[2024-11-23T00:19:49.744Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.744Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.744Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.744Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] # params default might be backend specific.
[2024-11-23T00:19:49.744Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.744Z] else:
[2024-11-23T00:19:49.744Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.744Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.744Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.744Z] params = ('example', 1)
[2024-11-23T00:19:49.744Z]
[2024-11-23T00:19:49.744Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.744Z] if params is None:
[2024-11-23T00:19:49.744Z] return super().execute(query)
[2024-11-23T00:19:49.744Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.744Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_ignore_validation_for_unchanged_fields>
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def setUp(self):
[2024-11-23T00:19:49.745Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.745Z] race_name='example',
[2024-11-23T00:19:49.745Z] position=1
[2024-11-23T00:19:49.745Z] )
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.745Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.745Z] self.save_base(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.745Z] updated = self._save_table(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.745Z] results = self._do_insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.745Z] return manager._insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.745Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.745Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.745Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.745Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.745Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z] _________ TestUniquenessTogetherValidation.test_is_not_unique_together _________
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b798a10>
[2024-11-23T00:19:49.745Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b798a10>})
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.745Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.745Z] # ever set during testing).
[2024-11-23T00:19:49.745Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.745Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.745Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] # params default might be backend specific.
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.745Z] else:
[2024-11-23T00:19:49.745Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_is_not_unique_together>
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def setUp(self):
[2024-11-23T00:19:49.745Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.745Z] race_name='example',
[2024-11-23T00:19:49.745Z] position=1
[2024-11-23T00:19:49.745Z] )
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.745Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.745Z] self.save_base(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.745Z] updated = self._save_table(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.745Z] results = self._do_insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.745Z] return manager._insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.745Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.745Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.745Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.745Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.745Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z] ___________ TestUniquenessTogetherValidation.test_is_unique_together ___________
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b798a70>
[2024-11-23T00:19:49.745Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b798a70>})
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.745Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.745Z] # ever set during testing).
[2024-11-23T00:19:49.745Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.745Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.745Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] # params default might be backend specific.
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.745Z] else:
[2024-11-23T00:19:49.745Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d7f0>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_is_unique_together>
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def setUp(self):
[2024-11-23T00:19:49.745Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.745Z] race_name='example',
[2024-11-23T00:19:49.745Z] position=1
[2024-11-23T00:19:49.745Z] )
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.745Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.745Z] self.save_base(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.745Z] updated = self._save_table(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.745Z] results = self._do_insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.745Z] return manager._insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.745Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.745Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.745Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.745Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.745Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d7f0>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z] _____ TestUniquenessTogetherValidation.test_read_only_fields_with_default ______
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7c8ad0>
[2024-11-23T00:19:49.745Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7c8ad0>})
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.745Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.745Z] # ever set during testing).
[2024-11-23T00:19:49.745Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.745Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.745Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] # params default might be backend specific.
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.745Z] else:
[2024-11-23T00:19:49.745Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fdd90>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_read_only_fields_with_default>
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def setUp(self):
[2024-11-23T00:19:49.745Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.745Z] race_name='example',
[2024-11-23T00:19:49.745Z] position=1
[2024-11-23T00:19:49.745Z] )
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.745Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.745Z] self.save_base(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.745Z] updated = self._save_table(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.745Z] results = self._do_insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.745Z] return manager._insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.745Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.745Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.745Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.745Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.745Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fdd90>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z] _ TestUniquenessTogetherValidation.test_read_only_fields_with_default_and_source _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7c94f0>
[2024-11-23T00:19:49.745Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7c94f0>})
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.745Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.745Z] # ever set during testing).
[2024-11-23T00:19:49.745Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.745Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.745Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] # params default might be backend specific.
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.745Z] else:
[2024-11-23T00:19:49.745Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_read_only_fields_with_default_and_source>
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def setUp(self):
[2024-11-23T00:19:49.745Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.745Z] race_name='example',
[2024-11-23T00:19:49.745Z] position=1
[2024-11-23T00:19:49.745Z] )
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.745Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.745Z] self.save_base(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.745Z] updated = self._save_table(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.745Z] results = self._do_insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.745Z] return manager._insert(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.745Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.745Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.745Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.745Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.745Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.745Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.745Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.745Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.745Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521caeec30>
[2024-11-23T00:19:49.745Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.745Z] if params is None:
[2024-11-23T00:19:49.745Z] return super().execute(query)
[2024-11-23T00:19:49.745Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.745Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.745Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.745Z] > return super().execute(query, params)
[2024-11-23T00:19:49.745Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.745Z] __________________ TestUniquenessTogetherValidation.test_repr __________________
[2024-11-23T00:19:49.745Z]
[2024-11-23T00:19:49.745Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7993d0>
[2024-11-23T00:19:49.745Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.745Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7993d0>})
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.746Z] # ever set during testing).
[2024-11-23T00:19:49.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] # params default might be backend specific.
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.746Z] else:
[2024-11-23T00:19:49.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe690>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_repr>
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def setUp(self):
[2024-11-23T00:19:49.746Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.746Z] race_name='example',
[2024-11-23T00:19:49.746Z] position=1
[2024-11-23T00:19:49.746Z] )
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.746Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.746Z] self.save_base(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.746Z] updated = self._save_table(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.746Z] results = self._do_insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.746Z] return manager._insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.746Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.746Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.746Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.746Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.746Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe690>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z] ______ TestUniquenessTogetherValidation.test_unique_together_is_required _______
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7c9b50>
[2024-11-23T00:19:49.746Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7c9b50>})
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.746Z] # ever set during testing).
[2024-11-23T00:19:49.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] # params default might be backend specific.
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.746Z] else:
[2024-11-23T00:19:49.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fc9e0>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_unique_together_is_required>
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def setUp(self):
[2024-11-23T00:19:49.746Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.746Z] race_name='example',
[2024-11-23T00:19:49.746Z] position=1
[2024-11-23T00:19:49.746Z] )
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.746Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.746Z] self.save_base(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.746Z] updated = self._save_table(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.746Z] results = self._do_insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.746Z] return manager._insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.746Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.746Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.746Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.746Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.746Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fc9e0>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z] _ TestUniquenessTogetherValidation.test_updated_instance_excluded_from_unique_together _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b7c9c70>
[2024-11-23T00:19:49.746Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b7c9c70>})
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.746Z] # ever set during testing).
[2024-11-23T00:19:49.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] # params default might be backend specific.
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.746Z] else:
[2024-11-23T00:19:49.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fc3b0>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_updated_instance_excluded_from_unique_together>
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def setUp(self):
[2024-11-23T00:19:49.746Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.746Z] race_name='example',
[2024-11-23T00:19:49.746Z] position=1
[2024-11-23T00:19:49.746Z] )
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.746Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.746Z] self.save_base(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.746Z] updated = self._save_table(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.746Z] results = self._do_insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.746Z] return manager._insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.746Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.746Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.746Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.746Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.746Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fc3b0>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z] ______ TestUniquenessTogetherValidation.test_writeable_fields_with_source ______
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b799370>
[2024-11-23T00:19:49.746Z] sql = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (%s, %s) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b799370>})
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.746Z] # ever set during testing).
[2024-11-23T00:19:49.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] # params default might be backend specific.
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.746Z] else:
[2024-11-23T00:19:49.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff380>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E sqlite3.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <tests.test_validators.TestUniquenessTogetherValidation testMethod=test_writeable_fields_with_source>
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def setUp(self):
[2024-11-23T00:19:49.746Z] > self.instance = UniquenessTogetherModel.objects.create(
[2024-11-23T00:19:49.746Z] race_name='example',
[2024-11-23T00:19:49.746Z] position=1
[2024-11-23T00:19:49.746Z] )
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] tests/test_validators.py:187:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.746Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.746Z] self.save_base(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.746Z] updated = self._save_table(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.746Z] results = self._do_insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.746Z] return manager._insert(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.746Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.746Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.746Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.746Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.746Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff380>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniquenesstogethermodel" ("race_name", "position") VALUES (?, ?) RETURNING "tests_uniquenesstogethermodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z] ___________________ TestUniqueConstraintValidation.test_repr ___________________
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b857ef0>
[2024-11-23T00:19:49.746Z] sql = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (%s, %s, %s, %s) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.746Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b857ef0>})
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.746Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.746Z] # ever set during testing).
[2024-11-23T00:19:49.746Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.746Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.746Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.746Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] # params default might be backend specific.
[2024-11-23T00:19:49.746Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.746Z] else:
[2024-11-23T00:19:49.746Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff0b0>
[2024-11-23T00:19:49.746Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.746Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.746Z] if params is None:
[2024-11-23T00:19:49.746Z] return super().execute(query)
[2024-11-23T00:19:49.746Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.746Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.746Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.746Z] > return super().execute(query, params)
[2024-11-23T00:19:49.746Z] E sqlite3.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] self = <tests.test_validators.TestUniqueConstraintValidation testMethod=test_repr>
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] def setUp(self):
[2024-11-23T00:19:49.746Z] > self.instance = UniqueConstraintModel.objects.create(
[2024-11-23T00:19:49.746Z] race_name='example',
[2024-11-23T00:19:49.746Z] position=1,
[2024-11-23T00:19:49.746Z] global_id=1
[2024-11-23T00:19:49.746Z] )
[2024-11-23T00:19:49.746Z]
[2024-11-23T00:19:49.746Z] tests/test_validators.py:528:
[2024-11-23T00:19:49.746Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.746Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.746Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.746Z] self.save_base(
[2024-11-23T00:19:49.746Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.746Z] updated = self._save_table(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.747Z] results = self._do_insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.747Z] return manager._insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.747Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.747Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.747Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff0b0>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z] _______ TestUniqueConstraintValidation.test_single_field_uniq_validators _______
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b855c10>
[2024-11-23T00:19:49.747Z] sql = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (%s, %s, %s, %s) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b855c10>})
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.747Z] # ever set during testing).
[2024-11-23T00:19:49.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] # params default might be backend specific.
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.747Z] else:
[2024-11-23T00:19:49.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff020>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E sqlite3.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <tests.test_validators.TestUniqueConstraintValidation testMethod=test_single_field_uniq_validators>
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def setUp(self):
[2024-11-23T00:19:49.747Z] > self.instance = UniqueConstraintModel.objects.create(
[2024-11-23T00:19:49.747Z] race_name='example',
[2024-11-23T00:19:49.747Z] position=1,
[2024-11-23T00:19:49.747Z] global_id=1
[2024-11-23T00:19:49.747Z] )
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] tests/test_validators.py:528:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.747Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.747Z] self.save_base(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.747Z] updated = self._save_table(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.747Z] results = self._do_insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.747Z] return manager._insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.747Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.747Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.747Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7ff020>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z] __________ TestUniqueConstraintValidation.test_unique_together_field ___________
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b8644d0>
[2024-11-23T00:19:49.747Z] sql = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (%s, %s, %s, %s) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b8644d0>})
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.747Z] # ever set during testing).
[2024-11-23T00:19:49.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] # params default might be backend specific.
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.747Z] else:
[2024-11-23T00:19:49.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fc440>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E sqlite3.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <tests.test_validators.TestUniqueConstraintValidation testMethod=test_unique_together_field>
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def setUp(self):
[2024-11-23T00:19:49.747Z] > self.instance = UniqueConstraintModel.objects.create(
[2024-11-23T00:19:49.747Z] race_name='example',
[2024-11-23T00:19:49.747Z] position=1,
[2024-11-23T00:19:49.747Z] global_id=1
[2024-11-23T00:19:49.747Z] )
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] tests/test_validators.py:528:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.747Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.747Z] self.save_base(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.747Z] updated = self._save_table(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.747Z] results = self._do_insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.747Z] return manager._insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.747Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.747Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.747Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fc440>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniqueconstraintmodel" ("race_name", "position", "global_id", "fancy_conditions") VALUES (?, ?, ?, ?) RETURNING "tests_uniqueconstraintmodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('example', 1, 1, None)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z] _________ TestUniquenessForDateValidation.test_is_not_unique_for_date __________
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b867470>
[2024-11-23T00:19:49.747Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b867470>})
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.747Z] # ever set during testing).
[2024-11-23T00:19:49.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] # params default might be backend specific.
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.747Z] else:
[2024-11-23T00:19:49.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe8d0>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_is_not_unique_for_date>
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def setUp(self):
[2024-11-23T00:19:49.747Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T00:19:49.747Z] slug='existing',
[2024-11-23T00:19:49.747Z] published='2000-01-01'
[2024-11-23T00:19:49.747Z] )
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] tests/test_validators.py:609:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.747Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.747Z] self.save_base(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.747Z] updated = self._save_table(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.747Z] results = self._do_insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.747Z] return manager._insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.747Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.747Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.747Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe8d0>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z] ___________ TestUniquenessForDateValidation.test_is_unique_for_date ____________
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b856bd0>
[2024-11-23T00:19:49.747Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b856bd0>})
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.747Z] # ever set during testing).
[2024-11-23T00:19:49.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] # params default might be backend specific.
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.747Z] else:
[2024-11-23T00:19:49.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe450>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_is_unique_for_date>
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def setUp(self):
[2024-11-23T00:19:49.747Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T00:19:49.747Z] slug='existing',
[2024-11-23T00:19:49.747Z] published='2000-01-01'
[2024-11-23T00:19:49.747Z] )
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] tests/test_validators.py:609:
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.747Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.747Z] self.save_base(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.747Z] updated = self._save_table(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.747Z] results = self._do_insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.747Z] return manager._insert(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.747Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.747Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.747Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.747Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.747Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.747Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe450>
[2024-11-23T00:19:49.747Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] return super().execute(query)
[2024-11-23T00:19:49.747Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.747Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.747Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.747Z] > return super().execute(query, params)
[2024-11-23T00:19:49.747Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.747Z] __________________ TestUniquenessForDateValidation.test_repr ___________________
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b856390>
[2024-11-23T00:19:49.747Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.747Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.747Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b856390>})
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.747Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.747Z] # ever set during testing).
[2024-11-23T00:19:49.747Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.747Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.747Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.747Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.747Z] if params is None:
[2024-11-23T00:19:49.747Z] # params default might be backend specific.
[2024-11-23T00:19:49.747Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.747Z] else:
[2024-11-23T00:19:49.747Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.747Z]
[2024-11-23T00:19:49.747Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fef00>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_repr>
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def setUp(self):
[2024-11-23T00:19:49.748Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T00:19:49.748Z] slug='existing',
[2024-11-23T00:19:49.748Z] published='2000-01-01'
[2024-11-23T00:19:49.748Z] )
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] tests/test_validators.py:609:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.748Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.748Z] self.save_base(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.748Z] updated = self._save_table(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.748Z] results = self._do_insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.748Z] return manager._insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.748Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.748Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.748Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fef00>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z] _ TestUniquenessForDateValidation.test_updated_instance_excluded_from_unique_for_date _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b864a10>
[2024-11-23T00:19:49.748Z] sql = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.748Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b864a10>})
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.748Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.748Z] # ever set during testing).
[2024-11-23T00:19:49.748Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.748Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.748Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] # params default might be backend specific.
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.748Z] else:
[2024-11-23T00:19:49.748Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe0f0>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E sqlite3.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <tests.test_validators.TestUniquenessForDateValidation testMethod=test_updated_instance_excluded_from_unique_for_date>
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def setUp(self):
[2024-11-23T00:19:49.748Z] > self.instance = UniqueForDateModel.objects.create(
[2024-11-23T00:19:49.748Z] slug='existing',
[2024-11-23T00:19:49.748Z] published='2000-01-01'
[2024-11-23T00:19:49.748Z] )
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] tests/test_validators.py:609:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.748Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.748Z] self.save_base(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.748Z] updated = self._save_table(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.748Z] results = self._do_insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.748Z] return manager._insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.748Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.748Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.748Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fe0f0>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniquefordatemodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniquefordatemodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2000-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z] ________________ UniqueForMonthTests.test_not_unique_for_month _________________
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b8679b0>
[2024-11-23T00:19:49.748Z] sql = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b8679b0>})
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.748Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.748Z] # ever set during testing).
[2024-11-23T00:19:49.748Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.748Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.748Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] # params default might be backend specific.
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.748Z] else:
[2024-11-23T00:19:49.748Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fede0>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E sqlite3.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <tests.test_validators.UniqueForMonthTests testMethod=test_not_unique_for_month>
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def setUp(self):
[2024-11-23T00:19:49.748Z] > self.instance = UniqueForMonthModel.objects.create(
[2024-11-23T00:19:49.748Z] slug='existing', published='2017-01-01'
[2024-11-23T00:19:49.748Z] )
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] tests/test_validators.py:680:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.748Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.748Z] self.save_base(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.748Z] updated = self._save_table(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.748Z] results = self._do_insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.748Z] return manager._insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.748Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.748Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.748Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521b7fede0>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z] __________________ UniqueForMonthTests.test_unique_for_month ___________________
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b798530>
[2024-11-23T00:19:49.748Z] sql = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b798530>})
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.748Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.748Z] # ever set during testing).
[2024-11-23T00:19:49.748Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.748Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.748Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] # params default might be backend specific.
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.748Z] else:
[2024-11-23T00:19:49.748Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E sqlite3.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <tests.test_validators.UniqueForMonthTests testMethod=test_unique_for_month>
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def setUp(self):
[2024-11-23T00:19:49.748Z] > self.instance = UniqueForMonthModel.objects.create(
[2024-11-23T00:19:49.748Z] slug='existing', published='2017-01-01'
[2024-11-23T00:19:49.748Z] )
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] tests/test_validators.py:680:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.748Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.748Z] self.save_base(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.748Z] updated = self._save_table(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.748Z] results = self._do_insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.748Z] return manager._insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.748Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.748Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.748Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bf2fd10>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniqueformonthmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueformonthmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z] _________________ UniqueForYearTests.test_not_unique_for_year __________________
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b85fc50>
[2024-11-23T00:19:49.748Z] sql = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b85fc50>})
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.748Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.748Z] # ever set during testing).
[2024-11-23T00:19:49.748Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.748Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.748Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] # params default might be backend specific.
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.748Z] else:
[2024-11-23T00:19:49.748Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T00:19:49.748Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.748Z] if params is None:
[2024-11-23T00:19:49.748Z] return super().execute(query)
[2024-11-23T00:19:49.748Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.748Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.748Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.748Z] > return super().execute(query, params)
[2024-11-23T00:19:49.748Z] E sqlite3.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <tests.test_validators.UniqueForYearTests testMethod=test_not_unique_for_year>
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] def setUp(self):
[2024-11-23T00:19:49.748Z] > self.instance = UniqueForYearModel.objects.create(
[2024-11-23T00:19:49.748Z] slug='existing', published='2017-01-01'
[2024-11-23T00:19:49.748Z] )
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] tests/test_validators.py:719:
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.748Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.748Z] self.save_base(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.748Z] updated = self._save_table(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.748Z] results = self._do_insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.748Z] return manager._insert(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.748Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.748Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.748Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.748Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.748Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.748Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.748Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.748Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.748Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.748Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.748Z]
[2024-11-23T00:19:49.748Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4f530>
[2024-11-23T00:19:49.748Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T00:19:49.749Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.749Z] if params is None:
[2024-11-23T00:19:49.749Z] return super().execute(query)
[2024-11-23T00:19:49.749Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.749Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.749Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.749Z] > return super().execute(query, params)
[2024-11-23T00:19:49.749Z] E django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.749Z] ___________________ UniqueForYearTests.test_unique_for_year ____________________
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <django.db.backends.utils.CursorWrapper object at 0x7e521b85d6d0>
[2024-11-23T00:19:49.749Z] sql = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (%s, %s) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T00:19:49.749Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.749Z] ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='sqlite' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7e521b85d6d0>})
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def _execute(self, sql, params, *ignored_wrapper_args):
[2024-11-23T00:19:49.749Z] # Raise a warning during app initialization (stored_app_configs is only
[2024-11-23T00:19:49.749Z] # ever set during testing).
[2024-11-23T00:19:49.749Z] if not apps.ready and not apps.stored_app_configs:
[2024-11-23T00:19:49.749Z] warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
[2024-11-23T00:19:49.749Z] self.db.validate_no_broken_transaction()
[2024-11-23T00:19:49.749Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.749Z] if params is None:
[2024-11-23T00:19:49.749Z] # params default might be backend specific.
[2024-11-23T00:19:49.749Z] return self.cursor.execute(sql)
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] > return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d7f0>
[2024-11-23T00:19:49.749Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T00:19:49.749Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.749Z] if params is None:
[2024-11-23T00:19:49.749Z] return super().execute(query)
[2024-11-23T00:19:49.749Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.749Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.749Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.749Z] > return super().execute(query, params)
[2024-11-23T00:19:49.749Z] E sqlite3.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] The above exception was the direct cause of the following exception:
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_validators.UniqueForYearTests testMethod=test_unique_for_year>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def setUp(self):
[2024-11-23T00:19:49.749Z] > self.instance = UniqueForYearModel.objects.create(
[2024-11-23T00:19:49.749Z] slug='existing', published='2017-01-01'
[2024-11-23T00:19:49.749Z] )
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_validators.py:719:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.749Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:679: in create
[2024-11-23T00:19:49.749Z] obj.save(force_insert=True, using=self.db)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:891: in save
[2024-11-23T00:19:49.749Z] self.save_base(
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:997: in save_base
[2024-11-23T00:19:49.749Z] updated = self._save_table(
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1160: in _save_table
[2024-11-23T00:19:49.749Z] results = self._do_insert(
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/base.py:1201: in _do_insert
[2024-11-23T00:19:49.749Z] return manager._insert(
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
[2024-11-23T00:19:49.749Z] return getattr(self.get_queryset(), name)(*args, **kwargs)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/query.py:1847: in _insert
[2024-11-23T00:19:49.749Z] return query.get_compiler(using=using).execute_sql(returning_fields)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/models/sql/compiler.py:1836: in execute_sql
[2024-11-23T00:19:49.749Z] cursor.execute(sql, params)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:79: in execute
[2024-11-23T00:19:49.749Z] return self._execute_with_wrappers(
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:92: in _execute_with_wrappers
[2024-11-23T00:19:49.749Z] return executor(sql, params, many, context)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:100: in _execute
[2024-11-23T00:19:49.749Z] with self.db.wrap_database_errors:
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/utils.py:91: in __exit__
[2024-11-23T00:19:49.749Z] raise dj_exc_value.with_traceback(traceback) from exc_value
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/utils.py:105: in _execute
[2024-11-23T00:19:49.749Z] return self.cursor.execute(sql, params)
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7e521bd4d7f0>
[2024-11-23T00:19:49.749Z] query = 'INSERT INTO "tests_uniqueforyearmodel" ("slug", "published") VALUES (?, ?) RETURNING "tests_uniqueforyearmodel"."id"'
[2024-11-23T00:19:49.749Z] params = ('existing', '2017-01-01')
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def execute(self, query, params=None):
[2024-11-23T00:19:49.749Z] if params is None:
[2024-11-23T00:19:49.749Z] return super().execute(query)
[2024-11-23T00:19:49.749Z] # Extract names if params is a mapping, i.e. "pyformat" style is used.
[2024-11-23T00:19:49.749Z] param_names = list(params) if isinstance(params, Mapping) else None
[2024-11-23T00:19:49.749Z] query = self.convert_query(query, param_names=param_names)
[2024-11-23T00:19:49.749Z] > return super().execute(query, params)
[2024-11-23T00:19:49.749Z] E django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/db/backends/sqlite3/base.py:354: OperationalError
[2024-11-23T00:19:49.749Z] ______________ TestURLReversing.test_reverse_namespace_versioning ______________
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_namespace_versioning>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def test_reverse_namespace_versioning(self):
[2024-11-23T00:19:49.749Z] class FakeResolverMatch(ResolverMatch):
[2024-11-23T00:19:49.749Z] namespace = 'v1'
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] scheme = versioning.NamespaceVersioning
[2024-11-23T00:19:49.749Z] view = ReverseView.as_view(versioning_class=scheme)
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] request = factory.get('/v1/endpoint/')
[2024-11-23T00:19:49.749Z] request.resolver_match = FakeResolverMatch
[2024-11-23T00:19:49.749Z] > response = view(request, version='v1')
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:220:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.749Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.749Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.749Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.749Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.749Z] raise exc
[2024-11-23T00:19:49.749Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.749Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:23: in get
[2024-11-23T00:19:49.749Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T00:19:49.749Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T00:19:49.749Z] return super().reverse(
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.749Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.749Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.749Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.749Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.749Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <WSGIRequest: GET '/v1/endpoint/'>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def get_host(self):
[2024-11-23T00:19:49.749Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.749Z] host = self._get_raw_host()
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.749Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.749Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.749Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.749Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.749Z] return host
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.749Z] if domain:
[2024-11-23T00:19:49.749Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg += (
[2024-11-23T00:19:49.749Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.749Z] )
[2024-11-23T00:19:49.749Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.749Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.749Z] _____________ TestURLReversing.test_reverse_query_param_versioning _____________
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_query_param_versioning>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def test_reverse_query_param_versioning(self):
[2024-11-23T00:19:49.749Z] scheme = versioning.QueryParameterVersioning
[2024-11-23T00:19:49.749Z] view = ReverseView.as_view(versioning_class=scheme)
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] request = factory.get('/endpoint/?version=v1')
[2024-11-23T00:19:49.749Z] > response = view(request)
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:171:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.749Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.749Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.749Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.749Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.749Z] raise exc
[2024-11-23T00:19:49.749Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.749Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:23: in get
[2024-11-23T00:19:49.749Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T00:19:49.749Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:181: in reverse
[2024-11-23T00:19:49.749Z] url = super().reverse(
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.749Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.749Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.749Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.749Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.749Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <WSGIRequest: GET '/endpoint/?version=v1'>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def get_host(self):
[2024-11-23T00:19:49.749Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.749Z] host = self._get_raw_host()
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.749Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.749Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.749Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.749Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.749Z] return host
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.749Z] if domain:
[2024-11-23T00:19:49.749Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg += (
[2024-11-23T00:19:49.749Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.749Z] )
[2024-11-23T00:19:49.749Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.749Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.749Z] __________________ TestURLReversing.test_reverse_unversioned ___________________
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_unversioned>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def test_reverse_unversioned(self):
[2024-11-23T00:19:49.749Z] view = ReverseView.as_view()
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] request = factory.get('/endpoint/')
[2024-11-23T00:19:49.749Z] > response = view(request)
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:163:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.749Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.749Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.749Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.749Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.749Z] raise exc
[2024-11-23T00:19:49.749Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.749Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:23: in get
[2024-11-23T00:19:49.749Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:47: in reverse
[2024-11-23T00:19:49.749Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.749Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.749Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.749Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.749Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <WSGIRequest: GET '/endpoint/'>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def get_host(self):
[2024-11-23T00:19:49.749Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.749Z] host = self._get_raw_host()
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.749Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.749Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.749Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.749Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.749Z] return host
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.749Z] if domain:
[2024-11-23T00:19:49.749Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg += (
[2024-11-23T00:19:49.749Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.749Z] )
[2024-11-23T00:19:49.749Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.749Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.749Z] ______________ TestURLReversing.test_reverse_url_path_versioning _______________
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_versioning.TestURLReversing testMethod=test_reverse_url_path_versioning>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def test_reverse_url_path_versioning(self):
[2024-11-23T00:19:49.749Z] scheme = versioning.URLPathVersioning
[2024-11-23T00:19:49.749Z] view = ReverseView.as_view(versioning_class=scheme)
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] request = factory.get('/v1/endpoint/')
[2024-11-23T00:19:49.749Z] > response = view(request, version='v1')
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:196:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/decorators/csrf.py:65: in _view_wrapper
[2024-11-23T00:19:49.749Z] return view_func(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/views/generic/base.py:104: in view
[2024-11-23T00:19:49.749Z] return self.dispatch(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:515: in dispatch
[2024-11-23T00:19:49.749Z] response = self.handle_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:475: in handle_exception
[2024-11-23T00:19:49.749Z] self.raise_uncaught_exception(exc)
[2024-11-23T00:19:49.749Z] rest_framework/views.py:486: in raise_uncaught_exception
[2024-11-23T00:19:49.749Z] raise exc
[2024-11-23T00:19:49.749Z] rest_framework/views.py:512: in dispatch
[2024-11-23T00:19:49.749Z] response = handler(request, *args, **kwargs)
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:23: in get
[2024-11-23T00:19:49.749Z] return Response({'url': reverse('another', request=request)})
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T00:19:49.749Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:89: in reverse
[2024-11-23T00:19:49.749Z] return super().reverse(
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.749Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.749Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.749Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.749Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.749Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <WSGIRequest: GET '/v1/endpoint/'>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def get_host(self):
[2024-11-23T00:19:49.749Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.749Z] host = self._get_raw_host()
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.749Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.749Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.749Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.749Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.749Z] return host
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.749Z] if domain:
[2024-11-23T00:19:49.749Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg += (
[2024-11-23T00:19:49.749Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.749Z] )
[2024-11-23T00:19:49.749Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.749Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.749Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_nested _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_api_url_is_properly_reversed_with_nested>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def test_api_url_is_properly_reversed_with_nested(self):
[2024-11-23T00:19:49.749Z] field = self._create_field('nested', 'v1:nested-namespace')
[2024-11-23T00:19:49.749Z] > assert field.to_representation(PKOnlyObject(3)) == 'http://testserver/v1/nested/namespaced/3/'
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:389:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T00:19:49.749Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T00:19:49.749Z] rest_framework/relations.py:334: in get_url
[2024-11-23T00:19:49.749Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T00:19:49.749Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T00:19:49.749Z] return super().reverse(
[2024-11-23T00:19:49.749Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.749Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.749Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.749Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.749Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.749Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def get_host(self):
[2024-11-23T00:19:49.749Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.749Z] host = self._get_raw_host()
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.749Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.749Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.749Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.749Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.749Z] return host
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.749Z] if domain:
[2024-11-23T00:19:49.749Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.749Z] else:
[2024-11-23T00:19:49.749Z] msg += (
[2024-11-23T00:19:49.749Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.749Z] )
[2024-11-23T00:19:49.749Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.749Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.749Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_v1 _
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_api_url_is_properly_reversed_with_v1>
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] def test_api_url_is_properly_reversed_with_v1(self):
[2024-11-23T00:19:49.749Z] field = self._create_field('namespaced', 'v1')
[2024-11-23T00:19:49.749Z] > assert field.to_representation(PKOnlyObject(3)) == 'http://testserver/v1/namespaced/3/'
[2024-11-23T00:19:49.749Z]
[2024-11-23T00:19:49.749Z] tests/test_versioning.py:381:
[2024-11-23T00:19:49.749Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.749Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T00:19:49.749Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T00:19:49.749Z] rest_framework/relations.py:334: in get_url
[2024-11-23T00:19:49.749Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T00:19:49.749Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T00:19:49.749Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T00:19:49.750Z] return super().reverse(
[2024-11-23T00:19:49.750Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.750Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.750Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.750Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.750Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.750Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def get_host(self):
[2024-11-23T00:19:49.750Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.750Z] host = self._get_raw_host()
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.750Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.750Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.750Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.750Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.750Z] return host
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.750Z] if domain:
[2024-11-23T00:19:49.750Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg += (
[2024-11-23T00:19:49.750Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.750Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_api_url_is_properly_reversed_with_v2 _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_api_url_is_properly_reversed_with_v2>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def test_api_url_is_properly_reversed_with_v2(self):
[2024-11-23T00:19:49.750Z] field = self._create_field('namespaced', 'v2')
[2024-11-23T00:19:49.750Z] > assert field.to_representation(PKOnlyObject(5)) == 'http://testserver/v2/namespaced/5/'
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_versioning.py:385:
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T00:19:49.750Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T00:19:49.750Z] rest_framework/relations.py:334: in get_url
[2024-11-23T00:19:49.750Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:41: in reverse
[2024-11-23T00:19:49.750Z] url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T00:19:49.750Z] return super().reverse(
[2024-11-23T00:19:49.750Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.750Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.750Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.750Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.750Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.750Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def get_host(self):
[2024-11-23T00:19:49.750Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.750Z] host = self._get_raw_host()
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.750Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.750Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.750Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.750Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.750Z] return host
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.750Z] if domain:
[2024-11-23T00:19:49.750Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg += (
[2024-11-23T00:19:49.750Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.750Z] _ TestNamespaceVersioningHyperlinkedRelatedFieldScheme.test_non_api_url_is_properly_reversed_regardless_of_the_version _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] viewname = 'non-api-view', args = None, kwargs = {'pk': 10}
[2024-11-23T00:19:49.750Z] request = <WSGIRequest: GET '/'>, format = None, extra = {}
[2024-11-23T00:19:49.750Z] scheme = <rest_framework.versioning.NamespaceVersioning object at 0x7e521cd07950>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra):
[2024-11-23T00:19:49.750Z] """
[2024-11-23T00:19:49.750Z] If versioning is being used then we pass any `reverse` calls through
[2024-11-23T00:19:49.750Z] to the versioning scheme instance, so that the resulting URL
[2024-11-23T00:19:49.750Z] can be modified if needed.
[2024-11-23T00:19:49.750Z] """
[2024-11-23T00:19:49.750Z] scheme = getattr(request, 'versioning_scheme', None)
[2024-11-23T00:19:49.750Z] if scheme is not None:
[2024-11-23T00:19:49.750Z] try:
[2024-11-23T00:19:49.750Z] > url = scheme.reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:41:
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z] rest_framework/versioning.py:135: in reverse
[2024-11-23T00:19:49.750Z] return super().reverse(
[2024-11-23T00:19:49.750Z] rest_framework/versioning.py:25: in reverse
[2024-11-23T00:19:49.750Z] return _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:60: in _reverse
[2024-11-23T00:19:49.750Z] url = django_reverse(viewname, args=args, kwargs=kwargs, **extra)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/urls/base.py:88: in reverse
[2024-11-23T00:19:49.750Z] return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <URLResolver <URLResolver list> (None:None) '^/'>
[2024-11-23T00:19:49.750Z] lookup_view = 'non-api-view', _prefix = '/', args = (), kwargs = {'pk': 10}
[2024-11-23T00:19:49.750Z] possibilities = []
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def _reverse_with_prefix(self, lookup_view, _prefix, *args, **kwargs):
[2024-11-23T00:19:49.750Z] if args and kwargs:
[2024-11-23T00:19:49.750Z] raise ValueError("Don't mix *args and **kwargs in call to reverse()!")
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] if not self._populated:
[2024-11-23T00:19:49.750Z] self._populate()
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] possibilities = self.reverse_dict.getlist(lookup_view)
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] for possibility, pattern, defaults, converters in possibilities:
[2024-11-23T00:19:49.750Z] for result, params in possibility:
[2024-11-23T00:19:49.750Z] if args:
[2024-11-23T00:19:49.750Z] if len(args) != len(params):
[2024-11-23T00:19:49.750Z] continue
[2024-11-23T00:19:49.750Z] candidate_subs = dict(zip(params, args))
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] if set(kwargs).symmetric_difference(params).difference(defaults):
[2024-11-23T00:19:49.750Z] continue
[2024-11-23T00:19:49.750Z] matches = True
[2024-11-23T00:19:49.750Z] for k, v in defaults.items():
[2024-11-23T00:19:49.750Z] if k in params:
[2024-11-23T00:19:49.750Z] continue
[2024-11-23T00:19:49.750Z] if kwargs.get(k, v) != v:
[2024-11-23T00:19:49.750Z] matches = False
[2024-11-23T00:19:49.750Z] break
[2024-11-23T00:19:49.750Z] if not matches:
[2024-11-23T00:19:49.750Z] continue
[2024-11-23T00:19:49.750Z] candidate_subs = kwargs
[2024-11-23T00:19:49.750Z] # Convert the candidate subs to text using Converter.to_url().
[2024-11-23T00:19:49.750Z] text_candidate_subs = {}
[2024-11-23T00:19:49.750Z] match = True
[2024-11-23T00:19:49.750Z] for k, v in candidate_subs.items():
[2024-11-23T00:19:49.750Z] if k in converters:
[2024-11-23T00:19:49.750Z] try:
[2024-11-23T00:19:49.750Z] text_candidate_subs[k] = converters[k].to_url(v)
[2024-11-23T00:19:49.750Z] except ValueError:
[2024-11-23T00:19:49.750Z] match = False
[2024-11-23T00:19:49.750Z] break
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] text_candidate_subs[k] = str(v)
[2024-11-23T00:19:49.750Z] if not match:
[2024-11-23T00:19:49.750Z] continue
[2024-11-23T00:19:49.750Z] # WSGI provides decoded URLs, without %xx escapes, and the URL
[2024-11-23T00:19:49.750Z] # resolver operates on such URLs. First substitute arguments
[2024-11-23T00:19:49.750Z] # without quoting to build a decoded URL and look for a match.
[2024-11-23T00:19:49.750Z] # Then, if we have a match, redo the substitution with quoted
[2024-11-23T00:19:49.750Z] # arguments in order to return a properly encoded URL.
[2024-11-23T00:19:49.750Z] candidate_pat = _prefix.replace("%", "%%") + result
[2024-11-23T00:19:49.750Z] if re.search(
[2024-11-23T00:19:49.750Z] "^%s%s" % (re.escape(_prefix), pattern),
[2024-11-23T00:19:49.750Z] candidate_pat % text_candidate_subs,
[2024-11-23T00:19:49.750Z] ):
[2024-11-23T00:19:49.750Z] # safe characters from `pchar` definition of RFC 3986
[2024-11-23T00:19:49.750Z] url = quote(
[2024-11-23T00:19:49.750Z] candidate_pat % text_candidate_subs,
[2024-11-23T00:19:49.750Z] safe=RFC3986_SUBDELIMS + "/~:@",
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] # Don't allow construction of scheme relative urls.
[2024-11-23T00:19:49.750Z] return escape_leading_slashes(url)
[2024-11-23T00:19:49.750Z] # lookup_view can be URL name or callable, but callables are not
[2024-11-23T00:19:49.750Z] # friendly in error messages.
[2024-11-23T00:19:49.750Z] m = getattr(lookup_view, "__module__", None)
[2024-11-23T00:19:49.750Z] n = getattr(lookup_view, "__name__", None)
[2024-11-23T00:19:49.750Z] if m is not None and n is not None:
[2024-11-23T00:19:49.750Z] lookup_view_s = "%s.%s" % (m, n)
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] lookup_view_s = lookup_view
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] patterns = [pattern for (_, pattern, _, _) in possibilities]
[2024-11-23T00:19:49.750Z] if patterns:
[2024-11-23T00:19:49.750Z] if args:
[2024-11-23T00:19:49.750Z] arg_msg = "arguments '%s'" % (args,)
[2024-11-23T00:19:49.750Z] elif kwargs:
[2024-11-23T00:19:49.750Z] arg_msg = "keyword arguments '%s'" % kwargs
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] arg_msg = "no arguments"
[2024-11-23T00:19:49.750Z] msg = "Reverse for '%s' with %s not found. %d pattern(s) tried: %s" % (
[2024-11-23T00:19:49.750Z] lookup_view_s,
[2024-11-23T00:19:49.750Z] arg_msg,
[2024-11-23T00:19:49.750Z] len(patterns),
[2024-11-23T00:19:49.750Z] patterns,
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg = (
[2024-11-23T00:19:49.750Z] "Reverse for '%(view)s' not found. '%(view)s' is not "
[2024-11-23T00:19:49.750Z] "a valid view function or pattern name." % {"view": lookup_view_s}
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] > raise NoReverseMatch(msg)
[2024-11-23T00:19:49.750Z] E django.urls.exceptions.NoReverseMatch: Reverse for 'non-api-view' not found. 'non-api-view' is not a valid view function or pattern name.
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/urls/resolvers.py:831: NoReverseMatch
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] During handling of the above exception, another exception occurred:
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <tests.test_versioning.TestNamespaceVersioningHyperlinkedRelatedFieldScheme testMethod=test_non_api_url_is_properly_reversed_regardless_of_the_version>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def test_non_api_url_is_properly_reversed_regardless_of_the_version(self):
[2024-11-23T00:19:49.750Z] """
[2024-11-23T00:19:49.750Z] Regression test for #2711
[2024-11-23T00:19:49.750Z] """
[2024-11-23T00:19:49.750Z] field = self._create_field('non-api-view', 'v1')
[2024-11-23T00:19:49.750Z] > assert field.to_representation(PKOnlyObject(10)) == 'http://testserver/non-api/10/'
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_versioning.py:396:
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z] rest_framework/relations.py:396: in to_representation
[2024-11-23T00:19:49.750Z] url = self.get_url(value, self.view_name, request, format)
[2024-11-23T00:19:49.750Z] rest_framework/relations.py:334: in get_url
[2024-11-23T00:19:49.750Z] return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:45: in reverse
[2024-11-23T00:19:49.750Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.750Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.750Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.750Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.750Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def get_host(self):
[2024-11-23T00:19:49.750Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.750Z] host = self._get_raw_host()
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.750Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.750Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.750Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.750Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.750Z] return host
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.750Z] if domain:
[2024-11-23T00:19:49.750Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg += (
[2024-11-23T00:19:49.750Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.750Z] _________________ GetExtraActionUrlMapTests.test_action_names __________________
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <tests.test_viewsets.GetExtraActionUrlMapTests testMethod=test_action_names>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def test_action_names(self):
[2024-11-23T00:19:49.750Z] # Action 'name' and 'suffix' kwargs should be respected
[2024-11-23T00:19:49.750Z] response = self.client.get('/api/names/1/')
[2024-11-23T00:19:49.750Z] > view = response.view
[2024-11-23T00:19:49.750Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_viewsets.py:297: AttributeError
[2024-11-23T00:19:49.750Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.750Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z] Traceback (most recent call last):
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.750Z] response = get_response(request)
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.750Z] response = self.process_request(request)
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.750Z] host = request.get_host()
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.750Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z] WARNING django.request:log.py:248 Bad Request: /api/names/1/
[2024-11-23T00:19:49.750Z] __________________ GetExtraActionUrlMapTests.test_detail_view __________________
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <tests.test_viewsets.GetExtraActionUrlMapTests testMethod=test_detail_view>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def test_detail_view(self):
[2024-11-23T00:19:49.750Z] response = self.client.get('/api/actions/1/')
[2024-11-23T00:19:49.750Z] > view = response.view
[2024-11-23T00:19:49.750Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_viewsets.py:280: AttributeError
[2024-11-23T00:19:49.750Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.750Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z] Traceback (most recent call last):
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.750Z] response = get_response(request)
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.750Z] response = self.process_request(request)
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.750Z] host = request.get_host()
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.750Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z] WARNING django.request:log.py:248 Bad Request: /api/actions/1/
[2024-11-23T00:19:49.750Z] ___________________ GetExtraActionUrlMapTests.test_list_view ___________________
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <tests.test_viewsets.GetExtraActionUrlMapTests testMethod=test_list_view>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def test_list_view(self):
[2024-11-23T00:19:49.750Z] response = self.client.get('/api/actions/')
[2024-11-23T00:19:49.750Z] > view = response.view
[2024-11-23T00:19:49.750Z] E AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_viewsets.py:268: AttributeError
[2024-11-23T00:19:49.750Z] ------------------------------ Captured log call -------------------------------
[2024-11-23T00:19:49.750Z] ERROR django.security.DisallowedHost:exception.py:124 Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z] Traceback (most recent call last):
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[2024-11-23T00:19:49.750Z] response = get_response(request)
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/utils/deprecation.py", line 128, in __call__
[2024-11-23T00:19:49.750Z] response = self.process_request(request)
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/middleware/common.py", line 48, in process_request
[2024-11-23T00:19:49.750Z] host = request.get_host()
[2024-11-23T00:19:49.750Z] File "/usr/lib/python3.13/site-packages/django/http/request.py", line 151, in get_host
[2024-11-23T00:19:49.750Z] raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z] WARNING django.request:log.py:248 Bad Request: /api/actions/
[2024-11-23T00:19:49.750Z] ___________________ ReverseActionTests.test_request_passing ____________________
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <tests.test_viewsets.ReverseActionTests testMethod=test_request_passing>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def test_request_passing(self):
[2024-11-23T00:19:49.750Z] view = ActionViewSet()
[2024-11-23T00:19:49.750Z] view.basename = router.get_default_basename(ActionViewSet)
[2024-11-23T00:19:49.750Z] view.request = factory.get('/')
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] # Passing the view's request object should result in an absolute URL.
[2024-11-23T00:19:49.750Z] > assert view.reverse_action('list') == 'http://testserver/api/actions/'
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_viewsets.py:342:
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z] rest_framework/viewsets.py:175: in reverse_action
[2024-11-23T00:19:49.750Z] return reverse(url_name, *args, **kwargs)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:47: in reverse
[2024-11-23T00:19:49.750Z] url = _reverse(viewname, args, kwargs, request, format, **extra)
[2024-11-23T00:19:49.750Z] rest_framework/reverse.py:62: in _reverse
[2024-11-23T00:19:49.750Z] return request.build_absolute_uri(url)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:235: in build_absolute_uri
[2024-11-23T00:19:49.750Z] location = self._current_scheme_host + location.removeprefix("//")
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/utils/functional.py:47: in __get__
[2024-11-23T00:19:49.750Z] res = instance.__dict__[self.name] = self.func(instance)
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:245: in _current_scheme_host
[2024-11-23T00:19:49.750Z] return "{}://{}".format(self.scheme, self.get_host())
[2024-11-23T00:19:49.750Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] self = <WSGIRequest: GET '/'>
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] def get_host(self):
[2024-11-23T00:19:49.750Z] """Return the HTTP host using the environment or request headers."""
[2024-11-23T00:19:49.750Z] host = self._get_raw_host()
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] # Allow variants of localhost if ALLOWED_HOSTS is empty and DEBUG=True.
[2024-11-23T00:19:49.750Z] allowed_hosts = settings.ALLOWED_HOSTS
[2024-11-23T00:19:49.750Z] if settings.DEBUG and not allowed_hosts:
[2024-11-23T00:19:49.750Z] allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] domain, port = split_domain_port(host)
[2024-11-23T00:19:49.750Z] if domain and validate_host(domain, allowed_hosts):
[2024-11-23T00:19:49.750Z] return host
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg = "Invalid HTTP_HOST header: %r." % host
[2024-11-23T00:19:49.750Z] if domain:
[2024-11-23T00:19:49.750Z] msg += " You may need to add %r to ALLOWED_HOSTS." % domain
[2024-11-23T00:19:49.750Z] else:
[2024-11-23T00:19:49.750Z] msg += (
[2024-11-23T00:19:49.750Z] " The domain name provided is not valid according to RFC 1034/1035."
[2024-11-23T00:19:49.750Z] )
[2024-11-23T00:19:49.750Z] > raise DisallowedHost(msg)
[2024-11-23T00:19:49.750Z] E django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] /usr/lib/python3.13/site-packages/django/http/request.py:151: DisallowedHost
[2024-11-23T00:19:49.750Z] =============================== warnings summary ===============================
[2024-11-23T00:19:49.750Z] rest_framework/fields.py:990
[2024-11-23T00:19:49.750Z] /build/python-django-rest-framework/src/django-rest-framework-3.15.2/rest_framework/fields.py:990: UserWarning: max_value should be an integer or Decimal instance.
[2024-11-23T00:19:49.750Z] warnings.warn("max_value should be an integer or Decimal instance.")
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] rest_framework/fields.py:992
[2024-11-23T00:19:49.750Z] /build/python-django-rest-framework/src/django-rest-framework-3.15.2/rest_framework/fields.py:992: UserWarning: min_value should be an integer or Decimal instance.
[2024-11-23T00:19:49.750Z] warnings.warn("min_value should be an integer or Decimal instance.")
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] rest_framework/urlpatterns.py:108: 3 warnings
[2024-11-23T00:19:49.750Z] tests/test_routers.py: 1 warning
[2024-11-23T00:19:49.750Z] tests/test_urlpatterns.py: 9 warnings
[2024-11-23T00:19:49.750Z] /build/python-django-rest-framework/src/django-rest-framework-3.15.2/rest_framework/urlpatterns.py:108: RemovedInDjango60Warning: Converter 'drf_format_suffix' is already registered. Support for overriding registered converters is deprecated and will be removed in Django 6.0.
[2024-11-23T00:19:49.750Z] register_converter(suffix_converter, converter_name)
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_serializer_lists.py:746
[2024-11-23T00:19:49.750Z] /build/python-django-rest-framework/src/django-rest-framework-3.15.2/tests/test_serializer_lists.py:746: PytestUnknownMarkWarning: Unknown pytest.mark.django_db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
[2024-11-23T00:19:49.750Z] @pytest.mark.django_db()
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] tests/test_urlpatterns.py::FormatSuffixTests::test_allowed_formats_re_path
[2024-11-23T00:19:49.750Z] /build/python-django-rest-framework/src/django-rest-framework-3.15.2/rest_framework/urlpatterns.py:108: RemovedInDjango60Warning: Converter 'drf_format_suffix_good_ugly' is already registered. Support for overriding registered converters is deprecated and will be removed in Django 6.0.
[2024-11-23T00:19:49.750Z] register_converter(suffix_converter, converter_name)
[2024-11-23T00:19:49.750Z]
[2024-11-23T00:19:49.750Z] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[2024-11-23T00:19:49.750Z] =========================== short test summary info ============================
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_decoding_of_utf8_credentials - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_are_missing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_fail_post_if_credentials_contain_spaces - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_failing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_form_passing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_failing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_passing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_post_json_without_password_failing_basic_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::BasicAuthTests::test_regression_handle_bad_base64_basic_auth_header - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_failing_csrf - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_post_form_session_auth_passing_csrf - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_put_form_session_auth_passing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.750Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_authentication_if_user_is_not_active - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_invalid_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_contains_spaces - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_fail_post_if_token_is_missing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_accessible_as_classmethod - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_generate_key_returns_string - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_form_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_makes_one_db_query - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_post_json_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_has_auto_assigned_key_if_none_provided - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_form - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_bad_creds - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::TokenAuthTests::test_token_login_json_missing_fields - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_authentication_if_user_is_not_active - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_invalid_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_contains_spaces - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_fail_post_if_token_is_missing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_form_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_makes_one_db_query - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomTokenAuthTests::test_post_json_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_authentication_if_user_is_not_active - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_invalid_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_form_passing_nonexistent_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_contains_spaces - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_fail_post_if_token_is_missing - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_form_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_failing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_makes_one_db_query - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::CustomKeywordTokenAuthTests::test_post_json_passing_token_auth - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::BasicAuthenticationUnitTests::test_basic_authentication_raises_error_if_user_not_found - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/authentication/test_authentication.py::RemoteUserAuthenticationUnitTests::test_remote_user_works - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_raises_typeerror_when_anonymous_user_in_queryset_filter - AssertionError: TypeError not raised
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user - AssertionError: 400 != 403
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_dropdown_contains_logout_form - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_login_shown_when_logged_out - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_logout_shown_when_logged_in - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_name_shown_when_logged_in - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_in - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_out - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_name_shown_when_logged_in - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login - assert 200 == 400
[2024-11-23T00:19:49.751Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.751Z] FAILED tests/browsable_api/test_form_rendering.py::TestManyPostView::test_post_many_post_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_fk - django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T00:19:49.751Z] FAILED tests/generic_relations/test_generic_relations.py::TestGenericRelations::test_generic_relation - django.db.utils.OperationalError: no such table: generic_relations_bookmark
[2024-11-23T00:19:49.751Z] FAILED tests/test_atomic_requests.py::DBTransactionTests::test_no_exception_commit_transaction - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_atomic_requests.py::DBTransactionErrorTests::test_generic_exception_delegate_transaction_management - assert not True
[2024-11-23T00:19:49.751Z] + where True = <function get_rollback at 0x7e521e5749a0>()
[2024-11-23T00:19:49.751Z] + where <function get_rollback at 0x7e521e5749a0> = transaction.get_rollback
[2024-11-23T00:19:49.751Z] FAILED tests/test_atomic_requests.py::DBTransactionAPIExceptionTests::test_api_exception_rollback_transaction - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_atomic_requests.py::MultiDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_atomic_requests.py::NonAtomicDBTransactionAPIExceptionTests::test_api_exception_rollback_transaction_non_atomic_view - assert 400 == 404
[2024-11-23T00:19:49.751Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.751Z] + and 404 = status.HTTP_404_NOT_FOUND
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_model_admin_displayed_fields - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_token_string_representation - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_validate_raise_error_if_no_credentials_provided - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenTests::test_whitespace_in_password - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_create_user_token_invalid_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_do_not_reset_user_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_output - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_raising_error_for_invalid_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_authtoken.py::AuthTokenCommandTests::test_command_reset_user_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_fields.py::TestListFieldWithDjangoValidationErrors::test_invalid_inputs - django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::SearchFilterM2MTests::test_m2m_search - django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::SearchFilterM2MTests::test_must_call_distinct - django.db.utils.OperationalError: no such table: tests_attributemodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_default_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_default_ordering_using_string - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_get_template_context - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_incorrectfield_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_incorrecturl_extrahyphens_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_by_aggregate_field - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_by_dotted_source - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_improper_configuration - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_nonstandard_ordering_param - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_with_overridden_get_serializer_class - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_ordering_without_ordering_fields - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::OrderingFilterTests::test_reverse_ordering - django.db.utils.OperationalError: no such table: tests_orderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::SensitiveOrderingFilterTests::test_cannot_order_by_non_serializer_fields - django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_filters.py::SensitiveOrderingFilterTests::test_order_by_serializer_fields - django.db.utils.OperationalError: no such table: tests_sensitiveorderingfiltermodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_delete_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_get_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_head_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_post_cannot_set_id - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_post_error_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_post_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestRootView::test_put_root_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_delete_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_get_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_get_instance_view_incorrect_arg - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_patch_cannot_create_an_object - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_patch_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_post_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_put_cannot_set_id - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_put_error_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_put_instance_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_put_to_deleted_instance - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestInstanceView::test_put_to_filtered_out_instance - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestOverriddenGetObject::test_overridden_get_object_view - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestCreateModelWithAutoNowAddField::test_create_model_with_auto_now_add_field - django.db.utils.OperationalError: no such table: tests_comment
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestM2MBrowsableAPI::test_m2m_in_browsable_api - django.db.utils.OperationalError: no such table: tests_classa
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_dynamic_serializer_form_in_browsable_api - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_filters_out_name_with_filter_backend - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_by_name_with_filter_backend - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::TestFilterBackendAppliedToViews::test_get_root_view_filters_out_all_models_with_exclusive_filter_backend - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_invalid_string_for_uuid - django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.751Z] FAILED tests/test_generics.py::GetObjectOr404Tests::test_get_object_or_404_with_valid_uuid - django.db.utils.OperationalError: no such table: tests_uuidforeignkeytarget
[2024-11-23T00:19:49.751Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view - AssertionError: 400 != 404
[2024-11-23T00:19:49.751Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view - AssertionError: 400 != 403
[2024-11-23T00:19:49.751Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_simple_html_view - AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200)
[2024-11-23T00:19:49.751Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template - AssertionError: 400 != 404
[2024-11-23T00:19:49.751Z] FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template - AssertionError: 400 != 403
[2024-11-23T00:19:49.751Z] FAILED tests/test_lazy_hyperlinks.py::TestLazyHyperlinkNames::test_lazy_hyperlink_names - django.db.utils.OperationalError: no such table: tests_example
[2024-11-23T00:19:49.751Z] FAILED tests/test_metadata.py::TestSimpleMetadataFieldInfo::test_related_field_choices - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_middleware.py::TestMiddleware::test_middleware_can_access_user_when_processing_response - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_custom_display_value - django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestRelationalFieldDisplayValue::test_default_display_value - django.db.utils.OperationalError: no such table: tests_displayvaluetargetmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestIntegration::test_pk_create - django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestIntegration::test_pk_retrival - django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestIntegration::test_pk_update - django.db.utils.OperationalError: no such table: tests_foreignkeytargetmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestBulkCreate::test_bulk_create - django.db.utils.OperationalError: no such table: tests_bulkcreatemodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue2704TestCase::test_queryset_all - django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source - django.db.utils.OperationalError: no such table: tests_issue7550barmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue7550TestCase::test_dotted_source_with_default - django.db.utils.OperationalError: no such table: tests_issue7550foomodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue3674Test::test_nonID_PK_foreignkey_model_serializer - django.db.utils.OperationalError: no such table: tests_issue3674parentmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue4897TestCase::test_should_assert_if_writing_readonly_fields - django.db.utils.OperationalError: no such table: tests_onefieldmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Test5004UniqueChoiceField::test_unique_choice_field - django.db.utils.OperationalError: no such table: tests_uniquechoicemodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::TestFieldSource::test_traverse_nullable_fk - django.db.utils.OperationalError: no such table: tests_nestedforeignkeysource
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue6110Test::test_model_serializer_custom_manager - django.db.utils.OperationalError: no such table: tests_issue6110testmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_model_serializer.py::Issue6751Test::test_model_serializer_save_m2m_after_instance - django.db.utils.OperationalError: no such table: tests_issue6751model
[2024-11-23T00:19:49.751Z] FAILED tests/test_multitable_inheritance.py::InheritedModelSerializationTests::test_onetoone_primary_key_model_fields_as_expected - django.db.utils.OperationalError: no such table: tests_parentmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPaginationIntegration::test_filtered_items_are_paginated - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_over_maximum - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_to_zero - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPaginationIntegration::test_additional_query_params_are_preserved - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPaginationIntegration::test_empty_query_params_are_preserved - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPageNumberPagination::test_no_page_number[/] - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPageNumberPagination::test_no_page_number[/?page=] - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPageNumberPagination::test_second_page - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPageNumberPagination::test_last_page - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestPageNumberPaginationOverride::test_no_page_number - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_no_offset - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_single_offset - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_first_offset - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_middle_offset - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_ending_offset - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_erronous_offset - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_invalid_limit - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_zero_limit - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestLimitOffset::test_max_limit - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_invalid_cursor - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_forward - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_reverse - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_over_limit - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_zero - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_negative - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_forward - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_current_page_empty_reverse - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_negative - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_over_limit - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_cursor_pagination_with_page_size_zero - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_get_paginated_response_schema - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_invalid_cursor - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_pagination.py::TestCursorPaginationWithValueQueryset::test_use_with_ordering_filter_without_ordering_default_value - django.db.utils.OperationalError: no such table: tests_cursorpaginationmodel
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_api_root_view_discard_default_django_model_permission - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_calling_method_not_allowed - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_check_auth_before_queryset_call - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_create_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_delete_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_does_not_have_put_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.751Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_empty_view_does_not_assert - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_get_queryset_has_create_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_create_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_delete_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_has_put_permissions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_authenticated_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_ignore_model_permissions_with_unauthenticated_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_disallowed - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_permitted - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_options_updateonly - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::ModelPermissionsIntegrationTests::test_queryset_assertions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_for_object_with_custom_detail - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::CustomPermissionsTests::test_permission_denied_with_custom_detail - django.db.utils.OperationalError: no such table: tests_basicmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_false - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_and_true - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_not_false - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_not_true - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_object_and_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_object_or_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_false - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_lazyness - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_or_true - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_and_precedence_with_negation - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_several_levels_without_negation - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_permissions.py::PermissionsCompositionTests::test_unimplemented_has_object_permission - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_excluding_instance_from_original_queryset - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_prefetch_related.py::TestPrefetchRelatedUpdates::test_prefetch_related_updates - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_retrieve_prefetch_related - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_relative_hyperlinks - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedManyToManyTests::test_reverse_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_incorrect_type - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_foreign_key_update_with_invalid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedForeignKeyTests::test_reverse_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_create_with_valid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableForeignKeyTests::test_foreign_key_update_with_valid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_hyperlink.py::HyperlinkedNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_retrieve_prefetch_related - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_unsaved - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_create - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_retrieve - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKManyToManyTests::test_reverse_many_to_many_update - django.db.utils.OperationalError: no such table: tests_manytomanytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_not_required - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_incorrect_type - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_update_with_invalid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_empty - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_foreign_key_with_unsaved - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_Q_limited_choices - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_with_limited_choices - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_queryset_size_without_limited_choices - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKForeignKeyTests::test_reverse_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKRelationTests::test_relation_field_callable_source - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKRelationTests::test_relation_field_property_source - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_create_with_valid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_foreign_key_update_with_valid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_null_uuid_foreign_key_serializes_as_none - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableForeignKeyTests::test_nullable_uuid_foreign_key_is_valid_when_none - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::PKNullableOneToOneTests::test_reverse_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_does_not_exist - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_pk.py::OneToOnePrimaryKeyTests::test_one_to_one_when_primary_key_no_duplicates - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_retrieve_select_related - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_incorrect_type - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_foreign_key_update_with_invalid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_create - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_retrieve_prefetch_related - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugForeignKeyTests::test_reverse_foreign_key_update - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_emptystring - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_create_with_valid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_retrieve_with_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_emptystring - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_relations_slug.py::SlugNullableForeignKeyTests::test_foreign_key_update_with_valid_null - django.db.utils.OperationalError: no such table: tests_foreignkeytarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_204_no_content_responses_have_no_content_type_set - AssertionError: 'text/html; charset=utf-8' != None
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_contains_headers_of_api_response - AssertionError: 400 != 200 : Couldn't retrieve content: Response code was 400 (expected 200)
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_default_renderer_serializes_content_on_accept_any - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_head_method_serializes_no_content - AssertionError: 400 != 200
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_is_used_on_format_query_with_matching_accept - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_default_case - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_non_default_case - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_kwargs - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_specified_renderer_serializes_content_on_format_query - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::RendererEndToEndTests::test_unsatisfiable_accept_header_on_request_returns_406_status - AssertionError: 400 != 406
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::JSONRendererTests::test_render_queryset_values - django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::JSONRendererTests::test_render_queryset_values_list - django.db.utils.OperationalError: no such table: tests_dummytestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::CacheRenderTest::test_get_caching - AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::CacheRenderTest::test_head_caching - AttributeError: Can't get local object 'convert_exception_to_response.<locals>.inner'
[2024-11-23T00:19:49.752Z] FAILED tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown - assert 'id="extra-actions-menu"' in '\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n'
[2024-11-23T00:19:49.752Z] + where '\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n' = <built-in method decode of bytes object at 0x7e521b9596e0>()
[2024-11-23T00:19:49.752Z] + where <built-in method decode of bytes object at 0x7e521b9596e0> = b'\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n'.decode
[2024-11-23T00:19:49.752Z] + where b'\n<!doctype html>\n<html lang="en">\n<head>\n <title>Bad Request (400)</title>\n</head>\n<body>\n <h1>Bad Request (400)</h1><p></p>\n</body>\n</html>\n' = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.content
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::FileUploadTests::test_fileuploads_closed_at_request_end - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestContentParsingWithAuthentication::test_user_logged_in_authentication_has_POST_when_not_logged_in - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestUserSetter::test_calling_user_fails_when_attribute_error_is_raised - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestUserSetter::test_logged_in_user_is_set_on_wrapped_request - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestUserSetter::test_user_can_be_set - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestUserSetter::test_user_can_login - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestUserSetter::test_user_can_logout - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestHttpRequest::test_duplicate_request_form_data_access - AttributeError: 'HttpResponseBadRequest' object has no attribute '_request'. Did you mean: 'request'?
[2024-11-23T00:19:49.752Z] FAILED tests/test_request.py::TestHttpRequest::test_duplicate_request_stream_parsing_exception - AttributeError: 'HttpResponseBadRequest' object has no attribute '_request'. Did you mean: 'request'?
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_default_renderer_serializes_content_on_accept_any - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_head_method_serializes_no_content - AssertionError: 400 != 200
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_is_used_on_format_query_with_matching_accept - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_default_case - AssertionError: 'text/html; charset=utf-8' != 'mock/renderera; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_non_default_case - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_kwargs - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::RendererIntegrationTests::test_specified_renderer_serializes_content_on_format_query - AssertionError: 'text/html; charset=utf-8' != 'mock/rendererb; charset=utf-8'
[2024-11-23T00:19:49.752Z] - text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] + mock/rendererb; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_allow_posting_json - AssertionError: 400 != 200
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_a_form - AssertionError: 400 != 415
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::UnsupportedMediaTypeTests::test_should_not_allow_posting_xml - AssertionError: 400 != 415
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::Issue807Tests::test_content_type_set_explicitly_on_response - AssertionError: 'setbyview' != 'text/html; charset=utf-8'
[2024-11-23T00:19:49.752Z] - setbyview
[2024-11-23T00:19:49.752Z] + text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::Issue807Tests::test_does_not_append_charset_by_default - AssertionError: 'mock/renderera; charset=utf-8' != 'text/html; charset=utf-8'
[2024-11-23T00:19:49.752Z] - mock/renderera; charset=utf-8
[2024-11-23T00:19:49.752Z] + text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_response.py::Issue807Tests::test_if_there_is_charset_specified_on_renderer_it_gets_appended - AssertionError: 'mock/rendererc; charset=rendererc' != 'text/html; charset=utf-8'
[2024-11-23T00:19:49.752Z] - mock/rendererc; charset=rendererc
[2024-11-23T00:19:49.752Z] + text/html; charset=utf-8
[2024-11-23T00:19:49.752Z] FAILED tests/test_reverse.py::ReverseTests::test_reverse_with_versioning_scheme_fallback_to_default_on_error - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.752Z] FAILED tests/test_reverse.py::ReverseTests::test_reversed_urls_are_fully_qualified - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestSimpleRouter::test_multiple_action_handlers - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestRootView::test_retrieve_namespaced_root - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestRootView::test_retrieve_non_namespaced_root - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_custom_lookup_field_route - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_detail_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_list_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestCustomLookupFields::test_retrieve_lookup_field_url_encoded_detail_view_ - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestLookupUrlKwargs::test_custom_lookup_url_kwarg_route - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_encoded_kwarg_detail_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestLookupUrlKwargs::test_retrieve_lookup_url_kwarg_detail_view - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_detail - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestEmptyPrefix::test_empty_prefix_list - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_detail - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestRegexUrlPath::test_regex_url_path_list - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_create - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_defaultrouter_root - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_delete - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_detail_extra_action - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_detail_extra_other_action - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_list - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_list_extra_action - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_retrieve - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_routers.py::TestUrlPath::test_update - django.db.utils.OperationalError: no such table: tests_routertestmodel
[2024-11-23T00:19:49.752Z] FAILED tests/test_serializer_lists.py::TestToRepresentationManagerCheck::test - django.db.utils.OperationalError: no such table: tests_onetoonetarget
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_can_logout - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_credentials - AttributeError: 'HttpResponseBadRequest' object has no attribute 'data'
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_csrf_exempt_by_default - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_empty_post_uses_default_boolean_value - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_explicitly_enforce_csrf_checks - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_follow_307_308_preserve_kwargs - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_follow_redirect - assert 400 == 302
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_sessions - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_force_authenticate_with_user_and_token - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPITestClient::test_logout_resets_force_authenticate - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPIRequestFactory::test_csrf_exempt_by_default - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPIRequestFactory::test_explicitly_enforce_csrf_checks - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestAPIRequestFactory::test_force_authenticate - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestUrlPatternTestCase::test_urlpatterns - assert 400 == 200
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T00:19:49.752Z] + where get = <django.test.client.Client object at 0x7e521c036e90>.get
[2024-11-23T00:19:49.752Z] + where <django.test.client.Client object at 0x7e521c036e90> = <tests.test_testing.TestUrlPatternTestCase testMethod=test_urlpatterns>.client
[2024-11-23T00:19:49.752Z] FAILED tests/test_testing.py::TestExistingPatterns::test_urlpatterns - assert 400 == 404
[2024-11-23T00:19:49.752Z] + where 400 = <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8">.status_code
[2024-11-23T00:19:49.752Z] + where <HttpResponseBadRequest status_code=400, "text/html; charset=utf-8"> = get('/')
[2024-11-23T00:19:49.752Z] + where get = <django.test.client.Client object at 0x7e521c036850>.get
[2024-11-23T00:19:49.753Z] + where <django.test.client.Client object at 0x7e521c036850> = <tests.test_testing.TestExistingPatterns testMethod=test_urlpatterns>.client
[2024-11-23T00:19:49.753Z] FAILED tests/test_throttling.py::ThrottlingTests::test_request_throttling_is_per_user - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.753Z] FAILED tests/test_throttling.py::ScopedRateThrottleTests::test_get_cache_key_returns_correct_key_if_user_is_authenticated - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.753Z] FAILED tests/test_throttling.py::AnonRateThrottleTests::test_authenticated_user_not_affected - django.db.utils.OperationalError: no such table: auth_user
[2024-11-23T00:19:49.753Z] FAILED tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_fail - django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validation.py::TestMaxValueValidatorValidation::test_max_value_validation_success - django.db.utils.OperationalError: no such table: tests_validationmaxvaluevalidatormodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_doesnt_pollute_model - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_is_not_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_is_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_related_model_is_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_relation_is_not_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_updated_instance_excluded - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessValidation::test_value_error_treated_as_not_unique - django.db.utils.OperationalError: no such table: tests_uniquenessmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_allow_explict_override - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_fields_with_source - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_default_validator_with_multiple_fields_with_same_source - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_do_not_ignore_validation_for_null_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_filter_queryset_do_not_skip_existing_attribute - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_excluded_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_read_only_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_null_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_ignore_validation_for_unchanged_fields - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_is_not_unique_together - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_is_unique_together - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_read_only_fields_with_default_and_source - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_unique_together_is_required - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_updated_instance_excluded_from_unique_together - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessTogetherValidation::test_writeable_fields_with_source - django.db.utils.OperationalError: no such table: tests_uniquenesstogethermodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniqueConstraintValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniqueConstraintValidation::test_single_field_uniq_validators - django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniqueConstraintValidation::test_unique_together_field - django.db.utils.OperationalError: no such table: tests_uniqueconstraintmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_is_not_unique_for_date - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_is_unique_for_date - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_repr - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::TestUniquenessForDateValidation::test_updated_instance_excluded_from_unique_for_date - django.db.utils.OperationalError: no such table: tests_uniquefordatemodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::UniqueForMonthTests::test_not_unique_for_month - django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::UniqueForMonthTests::test_unique_for_month - django.db.utils.OperationalError: no such table: tests_uniqueformonthmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::UniqueForYearTests::test_not_unique_for_year - django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_validators.py::UniqueForYearTests::test_unique_for_year - django.db.utils.OperationalError: no such table: tests_uniqueforyearmodel
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestURLReversing::test_reverse_namespace_versioning - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestURLReversing::test_reverse_query_param_versioning - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestURLReversing::test_reverse_unversioned - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestURLReversing::test_reverse_url_path_versioning - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_nested - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v1 - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_api_url_is_properly_reversed_with_v2 - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_versioning.py::TestNamespaceVersioningHyperlinkedRelatedFieldScheme::test_non_api_url_is_properly_reversed_regardless_of_the_version - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_action_names - AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T00:19:49.753Z] FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_detail_view - AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T00:19:49.753Z] FAILED tests/test_viewsets.py::GetExtraActionUrlMapTests::test_list_view - AttributeError: 'HttpResponseBadRequest' object has no attribute 'view'
[2024-11-23T00:19:49.753Z] FAILED tests/test_viewsets.py::ReverseActionTests::test_request_passing - django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
[2024-11-23T00:19:49.753Z] ERROR tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_raises_typeerror_when_anonymous_user_in_queryset_filter - django.db.utils.OperationalError: no such table: django_session
[2024-11-23T00:19:49.753Z] ERROR tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user - django.db.utils.OperationalError: no such table: django_session
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_exact_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_regexp_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_additional_transforms - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_custom_lookup - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_escapes - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_multiple_words - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_null_characters - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_field_with_quotes - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_returns_same_queryset_if_no_search_fields_or_terms_provided - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_with_filter_subclass - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_search_with_nonstandard_search_param - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterTests::test_startswith_search - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterToManyTests::test_multiple_filter_conditions - django.db.utils.OperationalError: no such table: tests_blog
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_must_call_distinct_subsequent_m2m_fields - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] ERROR tests/test_filters.py::SearchFilterAnnotatedFieldTests::test_search_in_annotated_field - django.db.utils.OperationalError: no such table: tests_searchfiltermodel
[2024-11-23T00:19:49.753Z] = 437 failed, 945 passed, 145 skipped, 1 deselected, 17 warnings, 18 errors in 90.79s (0:01:30) =
[2024-11-23T00:19:50.003Z] ==> ERROR: A failure occurred in check().
[2024-11-23T00:19:50.003Z] Aborting...
[2024-11-23T00:19:52.485Z] ==> ERROR: Build failed, check /build/buildpkg/world-goblins-x86_64/jenkins/build
[Pipeline] }
[2024-11-23T00:19:52.487Z] ERROR: Failed to build source
[2024-11-23T00:19:52.487Z] ERROR: script returned exit code 255
[2024-11-23T00:19:52.487Z] Setting overall build result to FAILURE
[Pipeline] // catchError
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Check)
Stage "Check" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Sign)
Stage "Sign" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Add)
Stage "Add" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Remove)
Stage "Remove" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] emailext
[2024-11-23T00:19:52.652Z] Sending email to: artix-build-failures at artixlinux.org
More information about the artix-build-failures
mailing list